Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
0 votes
0 answers
116 views

Install OpenJDK 22 on Ubuntu 24.04

I've just upgraded from Ubuntu 23.10 to Ubuntu 24.04, on my Ubuntu 23.10 I had OpenJDK 22 ea from apt, now I can't see any 22 version, why is that? was it deleted from the repository? I've seen this ...
Roy Ash's user avatar
  • 113
0 votes
0 answers
18 views

Nautilus : OpenJDK Java 21 missing from "Open With"

I have upgraded from 23.10 to 24.04 today In nautilus I tried to run a java jar-file. But I couldn't, because in the "open with - list" there is no choice "OpenJDK..." I had a look ...
Sindbad's user avatar
  • 11
0 votes
1 answer
285 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 ...
Tms91's user avatar
  • 405
0 votes
0 answers
316 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 ...
PSL's user avatar
  • 1
0 votes
0 answers
133 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 ...
thmasker's user avatar
  • 161
14 votes
1 answer
46k 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 ...
zeugor's user avatar
  • 563
0 votes
0 answers
72 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) ...
Max's user avatar
  • 163
2 votes
1 answer
135 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 ...
chrish's user avatar
  • 161
0 votes
0 answers
92 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
Sai Kumar's user avatar
0 votes
0 answers
137 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 ...
Hutzpah's user avatar
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 ...
Nicholas Saunders's user avatar
-2 votes
1 answer
454 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....
hertfordkc's user avatar
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....
Marco Ferrara's user avatar
0 votes
0 answers
613 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 ...
Gustavo William's user avatar
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 "...
William Lin's user avatar
0 votes
1 answer
560 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 ...
Tms91's user avatar
  • 405
1 vote
1 answer
58 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 ...
HaveMercy's user avatar
0 votes
1 answer
425 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 ...
P_Z's user avatar
  • 101
1 vote
1 answer
185 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: ...
pateksan's user avatar
  • 113
1 vote
0 answers
1k 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 ...
Hannah's user avatar
  • 11
1 vote
1 answer
332 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/...
Joon-Sun Choi's user avatar
0 votes
1 answer
568 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 ...
themassiveone's user avatar
1 vote
0 answers
690 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 ...
Serge Rogatch's user avatar
0 votes
0 answers
1k views

Why is openjdk-17 in openjdk-17-jdk package empty?

I just installed openjdk-17-jdk package on fresh Ubuntu 22.04. It created two directories in /usr/lib/jvm: java-17-openjdk-amd64 (which contains JDK) openjdk-17 (which is empty) At least that's what ...
Line's user avatar
  • 361
1 vote
1 answer
10k 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 ...
Viet Than's user avatar
1 vote
0 answers
571 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 ...
Victor huggo Bianco's user avatar
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 ...
user997112's user avatar
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 ...
Milan Panic's user avatar
0 votes
0 answers
1k views

Eclipse not working in Ubuntu 20.04

I can't even run a simple hello world! program in Eclipse. Let's go step by step. Whenever I write a program and try to save it It shows this error: And when I try to run the program It shows this ...
Naeem Navjivan's user avatar
0 votes
1 answer
1k 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 ...
Mia Wagner's user avatar
1 vote
1 answer
935 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 ...
brownser's user avatar
  • 161
0 votes
0 answers
2k views

Java not insalled after "sudo apt-get install openjdk-8-jre / sudo apt-get install openjdk-8-jdk"

I am getting the follwoing error message: Command 'java' not found, but can be installed with: sudo apt install default-jre # version 2:1.11-72, or sudo apt install openjdk-11-jre-...
dayssky's user avatar
  • 31
0 votes
0 answers
4k views

IntelliJ Idea not able to detect Java JDK Path

I have openjdk 11.0.4.1 Installed In my System I'm trying to do development in java using IntellijIDEA IDE of Jetbrains. Whenever I try to start a new JAVA project I see no SDK in SDK path. So, ...
Soumalya Bhattacharya's user avatar
1 vote
1 answer
2k views

How to run Minecraft 1.18.x in (k)ubuntu 20.04 / java 17 throwing errors

How do I get Minecraft 1.18.x to run? I have openjdk-17 installed and Minecraft 1.16.x runs fine with openjdk-8. The relevant errors in the console are: [16:37:00 ERROR]: Game ended with bad state (...
Firehammer047's user avatar
6 votes
1 answer
3k views

How do I run a specific program that requires a different version of Java without changing the default system version of Java?

I am using Ubuntu Server to host multiple Minecraft servers. For the latest versions of Minecraft, I need the latest version of Java; however, I would like to run a modded server as well and some of ...
lordoftimelords's user avatar
0 votes
1 answer
749 views

Remove alternative paths of Openjdk

I want to remove 0 and 1(in Selection Column) and keep only 2. How can i do it?
Kushal Gaikwad's user avatar
1 vote
1 answer
683 views

Can't open smartgit, Java error

I've installed smartgit via ppa and tried to open it via GUI and it didn't. I tried to run smartgit command in terminal and it gave me this: Ignoring following line in file /usr/share/smartgit/bin/...
sanalcopluk's user avatar
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 ...
minisaurus's user avatar
1 vote
0 answers
619 views

Does Ubuntu 20.04 LTS have an upper memory limit for Java processes?

I've got this problem: There is a server running "Ubuntu 20.04.1 LTS" and a JDK 8 application. The machine has 256 GB of memory. Currently the JVM is started with the arguments -Xms25g -...
bzero's user avatar
  • 502
-1 votes
2 answers
431 views

"Helloworld" c program failed on my new ubuntu 20.04

when i build hello world program on eclips they are showing this when i build helloworld program on c on eclips this is shown on console:- 10:21:36 **** Build of configuration Debug for project sample ...
sahood's user avatar
  • 7
2 votes
0 answers
535 views

No .jinfo file. Adding Openjdk 16.0.2 to update-java-alternatives

I want to add /opt/jdk-16.0.2 to update-java-alternatives, but there is no .jinfo file. File should be there, because I have openjdk 16.0.2 I had no problems with adding java to update-alternatives ...
user3565923's user avatar
0 votes
1 answer
508 views

Why is openjdk-8 not installed well?

I installed openjdk-8-jdk, but at /usr/lib/jvm/java-8-openjdk-amd64, there is only bin, include, lib, man. Also, /usr/lib/jvm/java-8-openjdk-amd64/bin has just 2 files (appletviewer, jconsole). So I'...
yykim's user avatar
  • 1
1 vote
1 answer
118 views

Accept options when installing Java in terminal

How can I install Java (OpenJDK) on an Ubuntu system with regional preferences set int the command itself, so that it runs through the complete setup without needing user input? I am using this ...
Ufder's user avatar
  • 63
0 votes
1 answer
117 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 ...
Tamil Selvan's user avatar
1 vote
1 answer
2k views

Java 11 installation complains about dependencies

I have installed Java 11 from this site - https://bell-sw.com/pages/repositories/#apt by using the following commands: wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo apt-key ...
alex's user avatar
  • 239
0 votes
1 answer
641 views

Open JDK error when I Install Android Studio Arctic Fox on Xubuntu?

I am trying to install Android Studio Arctic Fox on my Xubuntu 20.04 using the official guide from here : https://developer.android.com/studio/install#64bit-libs I downloaded the .zip file and unzip ...
mohamed rabiaa's user avatar
0 votes
1 answer
597 views

BioX 4.6 won't launch: "An illegal reflective access operation has occurred."

BioX won't launch when using JRE 11 on two PCs running Ubuntu 20.04.2 and Pop!_OS 21.04. The BioX program however works fine without problems in openSUSE (Leap 15.2 and 15.3) which I replaced with ...
Bruno 's user avatar
  • 13
1 vote
0 answers
1k views

unrecognized algorithm name: PBEWithSHA1AndDESede

I am trying to use elasticsearch-certutil to generate a certificate sudo /usr/share/elasticsearch/bin/elasticsearch-certutil cert -out /usr/share/elasticsearch/config/elastic-certificates.p12 -pass &...
Hooman Bahreini's user avatar
0 votes
1 answer
746 views

How to fix java.lang.ClassNotFoundException: gnu.io.CommPortIdentifier with libRXTX on Ubuntu 20.04?

I have the following error: $ sudo java -jar /home/fadedbee/tc65sh-1.4.0/bin/tc65sh.jar -Djava.library.path=/usr/lib/jni/ -cp /usr/share/java/RXTXcomm.jar -p /dev/ttyUSB0 -b 115200 -f push.txt tc65sh ...
fadedbee's user avatar
  • 808
1 vote
1 answer
2k views

$ sdk current java is showing Not using any version of java

I have sdkman installed in my linux ubuntu 18.04. $ sdk version SDKMAN 5.11.5+713 I installed amazon java correto 11 using the below command. $ sdk install java 11.0.11.9.1-amzn java 11.0.11.9.1-amzn ...
Siddharth Suman's user avatar

1
2 3 4 5
12