As of May 31, 2023, we have updated our Code of Conduct.

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
-2 votes
1 answer
45 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.04....
hertfordkc's user avatar
-1 votes
0 answers
366 views

wsl2, Flutter, Android Studio version 2022.2, Unable to find bundled Java version

flutter doctor -v shows LAPTOP-DNCQ5AAC:/usr/lib/jvm$ flutter doctor -v [✓] Flutter (Channel stable, 2.8.0, on Ubuntu 22.04.2 LTS 5.15.90.1-microsoft-standard-WSL2, locale C.UTF-8) • Flutter ...
mLstudent33's user avatar
-1 votes
1 answer
143 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
132 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
180 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
101 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
  • 227
1 vote
1 answer
54 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
0 answers
141 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
  • 1
1 vote
0 answers
52 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
  • 111
1 vote
0 answers
486 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
0 votes
0 answers
51 views

Error to fetch some file while installing java, error remains even after I updated

I tried installing java on my laptop through the command "sudo apt install openjdk-17-jre-headless", but, it keeps showing the error "Failed to fetch http://security.ubuntu.com/ubuntu/...
Rakshit 's user avatar
1 vote
1 answer
179 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
262 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
498 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
20 views

Cannot install JDK 11 on Ubuntu 20.04 [duplicate]

I cannot install JDK 11 on Ubuntu 20.04. I always get the same connection error: Ign:1 http://mirror.it.ubc.ca/ubuntu focal-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.16+8-0ubuntu1~20.04 ...
samiri's user avatar
  • 1
0 votes
0 answers
401 views

-su: /usr/bin/java: No such file or directory Please Help

Please help me how to resolve the below issue in ubuntu 18.04LTS, When I run "update-alternatives --config java", I am getting below below result but when I run geoserver ubuntu asked me to ...
Rahul Verma's user avatar
0 votes
0 answers
473 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
  • 313
0 votes
1 answer
4k 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
335 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
551 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
2 votes
2 answers
2k 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
489 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
438 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
0 votes
1 answer
543 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 ...
brownfox's user avatar
  • 144
0 votes
0 answers
1k 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
  • 21
0 votes
0 answers
3k 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
2k 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
-1 votes
1 answer
448 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
456 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/...
yarkin's user avatar
  • 67
4 votes
4 answers
14k 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
222 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
257 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
1 vote
0 answers
283 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
270 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
88 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
71 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
1k 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
  • 229
0 votes
1 answer
480 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
426 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
997 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
469 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
  • 768
0 votes
1 answer
1k 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
0 votes
1 answer
293 views

Update Maven causes JAVA_HOME problem

I broke maven... I wanted to change from 3.6.0 to 3.8.1 and nothing is working yet wget https://downloads.apache.org/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz tar xf apache-maven-*....
Michael's user avatar
0 votes
1 answer
201 views

Intellij not able to access jdk

I am using Linux mint 20 (Posting it here as mint is based on Ubuntu😅). It has OpenJdk 11 (Checked it using --version), but Intellij doesn't recognise it. So, I tried adding it manually. I found that ...
Leo Red's user avatar
1 vote
1 answer
1k views

How to get Minecraft Server to boot with system?

I'm trying to figure out how to get my Minecraft server to start with my system. I'm currently on Ubuntu 21.04, kernel 5.11 and my DE is Gnome 3. I was following this post over on the Ubuntu ...
Tesseeaye's user avatar
5 votes
3 answers
12k views

how do I find openjdk-11 that I just installed?

I'm currently trying to install ghidra on my Ubuntu 20.04 machine. While installing, I get this: ****************************************************************** JDK 11+ (64-bit) could not be found ...
Garsty100's user avatar
0 votes
1 answer
1k views

Open JDK 14 for Ubuntu 18.04

I have read tons but can't find the answer to this. I want to install openjdk14 on ubuntu 18.04. I do not want oraclejdk14. I do not want openjdk11. Countless articles claim you can just apt install ...
Bruce's user avatar
  • 196
0 votes
1 answer
65 views

Desktop Entry for JavaFIBS

I'm trying to create a Desktop Entry for a game called Java FIBS. It uses jre as its environment. This is the file I've created, but can't seem to get it to execute: [Desktop Entry] Encoding=UTF-8 ...
Lojix's user avatar
  • 1
0 votes
1 answer
4k views

java.lang.NoClassDefFoundError: javafx/application/Platform despite JavaFx added as Maven dependency

My application is not a JavaFx application but is using some JavaFx librairies (JavaFx Media). The following code is running fine under Windows. But not Ubuntu: static void initJavaFx() { try { ...
lvr123's user avatar
  • 89

1
2 3 4 5
12