Questions tagged [openjdk]

Is a free and open source implementation of the Java programming language. It may be installed from the software centre.

Filter by
Sorted by
Tagged with
1 vote
1 answer
4k views

OpenJDK - Installing JDK Debug Symbols manually

i have all OpenJDK8 files and its debugging symbols, i can get OpenJDK working but when i try to use something that is used to debug, i'm still getting errors related to the dbg files, i don't know ...
0 votes
0 answers
415 views

Various errors while installing java 8 on Ubuntu 16.04 (64 bit) in VM [duplicate]

I am using Oracle VM Virtual Box (Version 5.1.18) to run Ubuntu 16.04. I am using proxy server . I have configured proxy settings in apt.conf and apt.config.In both these files my http proxy is set ...
3 votes
2 answers
16k views

eclipse: class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Since the update yesterday (yes, the linux update), eclipse denies me to run even the most simple helloworld: has been compiled by a more recent version of the Java Runtime (class file version 53.0), ...
0 votes
1 answer
31 views

How to safely update or switch from any version of Java to Java 17 on Ubuntu 22.04

I have Ubuntu 22.04 installed on a Virtualbox VM running on Windows 10. I have to switch the current version of Java installed on my Ubuntu to Java 17, which is the most recent version guaranteed to ...
13 votes
1 answer
32k views

install openjdk 21

I have Ubuntu 22.04.3 LTS. I have run sudo apt update but when I execute apt install openjdk-21 the package can't be located Reading package lists... Done Building dependency tree... Done Reading ...
0 votes
1 answer
6k views

Change java version from 1.8.0_161 to 1.8.0_151 Ubuntu 16.04

I am using ubuntu 16.04 LTS. ...$ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) ...$ ...
8 votes
9 answers
56k views

IcedTea-8 cannot run any jnlp application (maybe due to openjdk-11?)

I'm on Ubuntu MATE 18.04. All the jnlp applications I tried give execution error. After inspection, some libraries seem to be missing in Java. So I removed everything, started installation again, and ...
0 votes
0 answers
132 views

Problems installing jdk over OpenJdk on Ubuntu

I tried to install JDK 21 on a machine with Ubuntu (last LTS) with a previous installation of OpenJDK 17. I tried to remove the old one first with a mix of autoremove and purge (I do not remember the ...
0 votes
1 answer
114 views

How do I run mutiple Java applications with different versions?

I am using Ubuntu 18.04 LTS and I have 2 apps which need to run with different Java versions. My 1st app (Mirth Connect) needs to run on jre1.8.0_171 and my second app (Power Assist) needs to run on ...
0 votes
0 answers
99 views

VisualVM Version of OpenJDK is not supported

I have install VisualVM on my Ubuntu machine, and I'm getting this error when trying to open it: Version of OpenJDK is not supported. Please use the default-jdk. I have no idea on how to solve it java ...
0 votes
2 answers
6k views

Minecraft 1.8.9 Won't launch even when changed Java version to 8

I recently switched to Ubuntu, and I'm new to Linux. I want to play Minecraft on version 1.8.9 on my Ubuntu machine. I heard that you need to set your java to version 8, so I did that, and now the ...
1 vote
0 answers
6k views

How to make IcedTea use OpenJDK instead of (no longer installed) Oracle Java?

I had some issues with an .jnlp file using OpenJDK so I installed Oracle Java. It didn't work either, so I uninstalled it (the config folder is still there though). Now, if I want to open something ...
5 votes
7 answers
12k views

FreeMind won't run even with OpenJDK JRE installed

I installed FreeMind from USC Ubuntu 12.04, but it failed to run with the following error: [warning] /usr/bin/freemind: No java runtime was found [error] /usr/bin/freemind: Unable to find an ...
-2 votes
1 answer
413 views

How do I enable Libreoffice Base 7.5 on Ubuntu 22.04?

I've added openjdk version "11.0.19" 2023-04-18: OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1) OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu122....
1 vote
1 answer
153 views

Netbeans won't start due to UnsupportedClassVersionError and asks for java 55 aka 11 but I do have it

When I try to run my newly installed Netbeans, I get: org.netbeans.InvalidException: StandardModule:org.netbeans.modules.db jarFile: /usr/share/netbeans/10.0/ide/modules/org-netbeans-modules-db.jar: ...
0 votes
1 answer
308 views

How to set PATH, HOME, JAVA_HOME variables correctly for working with maven after Java-JDK installations?

I visited the webpage at https://help.ubuntu.com/community/EnvironmentVariables and find out about setting environment variables and local user variables and have got a pretty clear picture. But I am ...
0 votes
0 answers
68 views

Installing Ant is overriding Java Installation

I am trying to install ANT after installing java. My java in Sun Java. pc19@pc19-H110:~$ java -version java version "20.0.2" 2023-07-18 Java(TM) SE Runtime Environment (build 20.0.2+9-78) ...
2 votes
1 answer
125 views

How to enforce a package dependency instead of an alternative?

I am developing a Debian package for Ubuntu which uses Java 17. We have historically had a runtime dependency on openjdk-17-jre. We have a part of our software that has used JavaFX on Windows and ...
2 votes
4 answers
5k views

I cannot install java from the software center

I can't install openJDK from the software center, I get the error: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-7/openjdk-7-jre-lib_7u15-2.3.7-0ubuntu1~12.10_all.deb 404 ...
0 votes
0 answers
90 views

Getting error while installing NetExtender in Ubuntu 22.04

Unable to install netextender in Ubuntu while executing ./install in termnal. The error coming is ./install: line 302: /usr/sbin/netExtender: cannot execute binary file: Exec format error
8 votes
2 answers
39k views

Package 'openjdk-11-jdk' has no installation candidate

When trying to install OpenJDK 11 in Ubuntu, I got an error sudo apt-get install openjdk-11-jdk Reading package lists... Done Building dependency tree Reading state information... Done ...
3 votes
3 answers
4k views

Cannot set JAVA_HOME after installing opendjk with snap

I installed openjdk with sudo snap install openjdk, and I want to set JAVA_HOME to enable my java related commands in terminal, but it is not working. I tried the following: creating a script ...
324 votes
12 answers
994k views

How to install OpenJDK 8 on 14.04 LTS?

Java 8 is now available according to http://openjdk.java.net/projects/jdk8/, but http://openjdk.java.net/install/ does not yet mention how to install OpenJDK 8 (not Oracle Java) on Ubuntu 14.04 Long ...
0 votes
0 answers
127 views

REW (Room EQ wizard) not working?

REW (Room EQ Wizard) has stopped working. The following warning pops up. “Unable to access the selected device to AudioFire8a [plughw:0,0] does not have any line supporting PCM_SGNED 44100.0 Hz, 32 ...
2 votes
1 answer
2k views

How do I install and setup OpenJDK in Ubuntu from Snapcraft?

How is OpenJDK installed from snap so that javac and java are available from the CLI? nicholas@mordor:~$ nicholas@mordor:~$ snap list Name Version Rev Tracking ...
0 votes
1 answer
17k views

Command line Java: Error: A JNI error has occurred/Exception in thread "main" java.lang.NoClassDefFoundError

I'm trying to compile/build/run a Java project for the first time on Ubuntu 14.04. The project depends on the CPlex optimization library. I've compiled the code using javac -classpath .:/opt/ibm/...
1 vote
1 answer
9k views

How to install openjdk-18?

I am trying to optimize Minecraft on Linux and it says to get the latest OpenJDK JRE. My current setup is: $ sudo update-alternatives --config java ...
18 votes
2 answers
22k views

Java 11 to 8: update-alternatives: error: no alternatives for mozilla-javaplugin.so

I have Java 11 and 8 in my Ubuntu 18.04, side by side. I mean to set Java 8 as the default. What I get: $ sudo update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64 update-...
0 votes
1 answer
2k views

Install openjdk-11-jdk 32bit on Ubuntu 20.04 64bit

I have installed openjdk-11 64 bit, but I need to install 32bit version $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20....
2 votes
2 answers
2k views

When I try to install OpenJDK 11, OpenJDK 10 got installed

I used the below apt command to install OpenJDK 11 sudo apt install openjdk-11-jdk But, OpenJDK 10 got installed, result of java --version openjdk 10.0.1 2018-04-17 OpenJDK Runtime Environment (build ...
0 votes
1 answer
1k views

Trying to run Clion but get "No JDK found. Please validate either CLION_JDK, JDK_HOME or JAVA_HOME environment variable points to valid

I'm trying to run Clion IDE on Ubuntu 22.04. I installed JRE and I think I installed JDK by running: sudo apt install -y openjdk-18-jdk but when I run ./clion.sh I get: No JDK found. Please validate ...
4 votes
3 answers
13k views

How to install only javadoc?

I installed java downloading the relative file from the Oracle site, and following the manual guide I found on http://wiki.ubuntu-it.org . I have it and it works. Now I'm trying using javadoc with ...
1 vote
1 answer
309 views

openjdk-11-jdk-headless_11.0.16 Connection failed[IP: 91.189.91.39 80]

I trying to install openjdk-11-jdk-headless But the same error (connection failed) occurs repeatedly as below. How could I solve this problem ? Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/...
0 votes
0 answers
549 views

Java process consuming too much ram in background, how to remove it?

My PC has been crashing a lot of times recently, it suddenly stops responding and after a few seconds, it asks me to force quit some apps. At first, I thought it was a problem with VSCode since it ...
0 votes
1 answer
1k views

Unable to locate package openjdk-14-jdk, Ubuntu 20.04

I am trying to install openjdk-14-jdk required for install the Eclipse IDE, but it returns "E: Unable to locate package openjdk-14-jdk". There is no recommendation when I click TAB at "...
184 votes
6 answers
593k views

Switch between multiple java versions

While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a solution of how to install a newer Oracle version of Java: sudo ...
0 votes
1 answer
513 views

After uninstalling java 18 and installing java 11, running a program based on Java raise "Error: could not find libjava.so"

I want to run a program based on Java 11 (Geoserver) in a Ubuntu 22.04 OS hosted on a virtualbox VM on a Windows 10 host OS. Since I had Java 18 installed before (I installed it by following this ...
1 vote
1 answer
57 views

I possibly installed a malware by a misspelled java installation command in the terminal

I was trying to download java, more specifically, JDK version 16. The right command was sudo apt install openjdk-16-jdk, but I end up typing sudo apt install open-jdk-11 instead, the funny thing is ...
1 vote
0 answers
551 views

Ubuntu 22.04 Wine jvm creation error

I am trying to install the UNM2000.exe software, from Fiberhome via Wine on Ubuntu 22.04, but I'm getting this wine error: JVM Creation failed. I've used this software with the same installation ...
11 votes
2 answers
16k views

ca-certificates-java fails when trying to install openjdk-6-jre

I use a VPS with Ubuntu Server 10.10 x64. I want to use Java and run the command sudo apt-get install openjdk-6-jre but it fails because the installation encounted errors while processing ca-...
1 vote
1 answer
3k views

HOW TO? Uninstalled 'I2P' (Java application) but 'I2P' still starting java service after system startup

I installed I2P on my Ubuntu 14.04 (latest updates, openjdk-8-jre) using java -jar i2pinstall_0.9.28.jar -console. After playing around with it, I uninstalled it by sudo java -jar uninstaller.jar, ...
0 votes
1 answer
967 views

Not being able to run a java executable

I am currently trying to install forge (forge-1.18.2-40.0.36-installer.jar) on my new ubuntu 22.04 install. I have already installed minecraft (with the .deb), show the "secret" .minecraft ...
1 vote
0 answers
969 views

Exception in thread "main" java.lang.RuntimeException

I'm trying to set up a 1.18.2 fabric modded minecraft server but I keep getting this error when I try to run the .jar file for it from the terminal. I am running ubuntu version 22.04 and openjdk ...
4 votes
4 answers
15k views

Do I have log4j on my Ubuntu 18.04.6?

I'm obviously worried about this vulnerability, but I wonder if I even have this library on my machine? The machine is a webserver running a couple of node expressjs frameworks over nginx, plus a ...
0 votes
1 answer
540 views

Installing Latest Openjdk and Gradle using package managers only

Im fairly new to developing using the java ecosystem of tools, but i have never experienced a language ecosystem that involves as much installation effort. My goal is to create a pico cli following ...
1 vote
0 answers
668 views

How to install OpenJDK-19 debug symbols on Ubuntu 20.04?

I've installed OpenJDK-19 on Ubuntu 20.04 using snap. However, I'm not able to find the package in snap which corresponds to openjdk-19-dbg in apt, and I can't find OpenJDK-19 in apt at all. Could you ...
1 vote
1 answer
889 views

Downgrade openjfx on Ubuntu 22.04

I'm trying to Install the package Burai (https://nisihara.wixsite.com/burai) for DFT calculations. This package depends on the openjfx library and becaus of recent bug in the openjfx I'm getting the ...
204 votes
9 answers
987k views

How to completely uninstall Java?

How can I completely remove all traces of Java on my system? I already know how to install it in case I need it again.
4 votes
5 answers
14k views

Installing Java 7 in 16.04 and using multiple Java versions

I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions. I also want to switch between Java 7 and 8 to update a project I am working on. I ...
9 votes
4 answers
38k views

How to install JDK8 on Ubuntu 16?

I needed JDK 8 for Bazel. I ran sudo apt-get install openjdk-8* on a freshly built Ubuntu 16.04.02 machine, but after installation update-alternatives --config java show two paths: /usr/lib/jvm/java-...

1
2 3 4 5
12