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
46 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
-1 votes
0 answers
19 views

I'm trying to run a .jnlp file on ubuntu 22.04.4 LTS [duplicate]

This is a part of the .jnlp script that I'm trying to run in Ubuntu. <resources> <!-- Application Resources --> <j2se version="1.7+" href="http://java.sun....
Isaias Luna's user avatar
0 votes
0 answers
64 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
  • 151
6 votes
1 answer
25k 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
  • 483
0 votes
0 answers
56 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
115 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
87 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
119 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
1k 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
383 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
490 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
961 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
470 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
  • 365
1 vote
1 answer
56 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
277 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
140 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
920 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
290 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
512 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
657 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
  • 335
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 ...
Viet Than's user avatar
1 vote
0 answers
541 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
3k 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
917 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
856 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
  • 153
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
697 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
642 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
563 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
388 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
499 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
483 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
104 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
107 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
623 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
578 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
699 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
0 votes
1 answer
386 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
239 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
2 3 4 5
12