Questions tagged [jdk]

Questions relating to the installing and use of the Java Development Kit (jdk)

Filter by
Sorted by
Tagged with
0 votes
2 answers
61 views

Installing Java

I am trying to install Java. but I am getting following Issue: - I downloaded jdk-8u201-linux-i586.tar.gz from oracle web site. Then I created directories as sudo mkdir /usr/local/java After that i ...
khushvinder singh Jasrotia's user avatar
0 votes
1 answer
140 views

Keycloak on Ubuntu

I have Java version 8 installed on my Ubuntu. I just installed Keycloak version 21, and when I tried to run this script from bin directory ./kc.sh start-dev I got the following error: Unrecognized ...
Abdelrahman Ibrahim's user avatar
0 votes
0 answers
139 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
1 answer
196 views

JAVA_HOME for the current java alternative

I have 2 jdk installed from downloaded deb packages from oracle: jdk-17_linux-x64_bin.deb and jdk-21_linux-x64_bin.deb I can switch between the two versions by using sudo update-alternatives --config ...
prout's user avatar
  • 101
0 votes
3 answers
1k views

Ubuntu 20.04 java --version Error: could not open `/usr/lib/jvm/jdk-21-oracle-x64/lib/jvm.cfg'

Trying to install jdk-21-oracle-x64 on Ubuntu 20.04 but it seems to be missing jvm.cfg. Is this a Oracle problem or Ubuntu problem?
Tom Quinn's user avatar
0 votes
0 answers
27 views

link group java is broken (can't install java in Ubuntu with WSL2) [duplicate]

I'm new to using Linux via WSL2 and I am following a tutorial to install java on Ubuntu Ubuntu is up-to-date Ubuntu 22.04.3 LTS on Windows 10 x86_64 and installing JDK 17 I am getting this error when ...
prab's user avatar
  • 1
0 votes
0 answers
2k views

Docker failed to compute cache key

I try to run docker in my spring boot, and when i add Dockerfile at the directory booting-web/ and put some code like this : FROM maven:3.6.3-openjdk-17-slim as BUILDER ARG VERSION=0.0.1-SNAPSHOT ...
Mahesta Riyadi Putranto's user avatar
2 votes
1 answer
2k views

Permission denied trying to start a new process from a Java application as root user (with non-installed JDK)

I try to start a new process using Java's ProcessBuilder, running as root user (during the prototyping phase). It works as expected when I run the application using a JDK installed with apt. My ...
snorbi's user avatar
  • 123
0 votes
0 answers
30 views

Install Oracle Jdk

I'm newbie in ubuntu. Need to install a software for school project. Could someone guide me on installing jdk-20_linux-aarch64_bin.tar.gz. Thanks.
Atanu Sarkar's user avatar
1 vote
1 answer
1k views

Why update-java-alternatives -s /usr/lib/jvm/java-17-amazon-corretto does not update jexec?

Ubuntu 22.04.2: I installed java-17-amazon-corretto and did the update-java-alternatives but I got an error compiling my project. Last time I had to fix the links that were not updated, (java 11 vs ...
Martin P.'s user avatar
  • 111
0 votes
1 answer
98 views

Lost java binary versions and unable to restore them with jre or jdk

After uninstalling oracle java I lost java command and java --version throws error java order not found I'm supposed to have openjdk-8-jre and openjdk-8-jdk and same for openjdk-11-jre and openjdk-...
K. Weber's user avatar
  • 361
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 ...
Tms91's user avatar
  • 375
0 votes
1 answer
312 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
154 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
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/...
Joon-Sun Choi's user avatar
0 votes
0 answers
2k views

package javax.jws does not exist. JDK 1.7

I am trying to run an old maven project, a Website Application from my company, so I can do some changes for an update. Currently, I'm still making some changes in pom.xml file because some library is ...
rsn's user avatar
  • 9
0 votes
1 answer
329 views

Wordfast on Ubuntu: Error by the Java Runtime Environment

I am new on Ubuntu (try to switch from Windows). Now I try to run Wordfast Pro 7.2.0 on Ubuntu. Running the programm leads to the following error: A fatal error has been detected by the Java Runtime ...
Risu's user avatar
  • 1
14 votes
1 answer
35k views

How to install JDK 19 on Ubuntu 22.04 LTS?

Today, oracle release JDK 19. How to install JDK 19 on Ubuntu 22.04 LTS? https://www.oracle.com/java/technologies/downloads/
Vy Do's user avatar
  • 509
-1 votes
1 answer
687 views

trouble installing java 8

I am trying to install java 8 on my Ubuntu 18.0.4 system. I currently have java 1.7. I tried running: sudo apt install openjdk-8-jdk. It worked fine for a while until I got these errors: . . . Setting ...
richard's user avatar
  • 171
0 votes
0 answers
188 views

Installing Oracle Developer Studio on Ubuntu, but Java installation was not found on this computer

I am on Ubuntu 22.03.1. I want to use Oracle Developer Studio as Fortran IDE. I downloaded OracleDeveloperStudio12.6-linux-x86-rpm.tar.bz2 from here, unzipped it, and trying to execute it's ...
Tony's user avatar
  • 1
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
0 votes
1 answer
210 views

Understanding what happens during apt-get update [duplicate]

apt-cache search jdk returns zero results before apt-get update but several results after the update although the update output makes no mention of jdk installs. I am trying to find what I am missing. ...
Vijay Subramaniam's user avatar
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
2 votes
3 answers
12k views

Java JDK won't install

I'm trying to install Java JDK per this YouTube tutorial:. I get to the part where I run sudo dpkg -i <FILENAME> and it gives me this: (Reading database ... 185728 files and directories ...
filthyningen's user avatar
2 votes
2 answers
5k views

Command 'java' not found on WSL, even though 'java' command works in Powershell

This topic probably is a common one, but when looking online I didn't see much that related to my case, since I'm not running a normal ubuntu, but rather WSL (Windows Subsystem for Linux). So my ...
Thibaut B.'s user avatar
1 vote
1 answer
663 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
1 vote
0 answers
587 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
3 votes
1 answer
10k views

Problems updating Java on Ubuntu 20.04 for Minecraft 1.18

Trying to upgrade Java to the latest version of the Minecraft server (v1.18), I had a bit of a drama because the server was initially running Ubuntu 19.x, so I've converted to 20.04 after finding the ...
neophytte's user avatar
  • 153
0 votes
3 answers
633 views

How to choose a JDK for a given Ubuntu VM

My Windows 10 machine is an HP EliteBook 840 G6 running i5-8365U. I recently installed Ubuntu 20.04.3 LTS as a VM on VirtualBox 6.1.28. The ISO file ubuntu-20.04.3-desktop-amd64.iso was from https://...
user2153235's user avatar
0 votes
1 answer
892 views

Ubuntu 18: eclipse fails while attempting to load SWT libraries

I am running latest eclipse, and when I open WindowBuilder JTable's model's diaglog, I get this error: Blockquote org.eclipse.swt.SWTError: Unspecified error [Error while starting AWT] (java.lang....
Sam_Fani's user avatar
0 votes
1 answer
4k views

Oracle JDK 16 Won't install

This is running off a VM in Oracle Cloud I tried fetching java 16 from add-apt-repository ppa:linuxuprising/java apt install oracle-java16-installer After executing the last command, I got this HTTP ...
Haren's user avatar
  • 3
1 vote
0 answers
518 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
0 answers
2k views

java.lang.NoClassDefFoundError: Could not initialize class java.awt.Container

I am pretty new to Ubuntu and also new to this forum. Looking for some help. I've been trying to install Impro-Visor by downloading the Impro-Visor_unix_10_2.sh file and running that in a terminal. I ...
UserS's user avatar
  • 1
0 votes
1 answer
340 views

Set JAVA_HOME in Ubuntu without "install" the JDK

I've just downloaded and extracted the JDK archive, next moving it to my /opt directory. Inside IntelliJ, everything is working properly. I just point the path to the JDK in the settings. But I cannot ...
pcbillions53's user avatar
0 votes
1 answer
10k views

How do I downgrade JDK?

I installed JDK with the Ubuntu Software application which selected JDK-16.0.2, and I need to downgrade to version 11.
Fadi's user avatar
  • 705
0 votes
1 answer
81 views

How do I know which JDK package to install?

I'm trying to download & install a JDK (Java Development Kit) from Oracle's website: https://www.oracle.com/java/technologies/javase-jdk16-downloads.html But I'm just not sure which package to ...
Fadi's user avatar
  • 705
0 votes
2 answers
2k views

java -version are different in user and root terminal

I tried to install Oracle SQL Developer. But my ubuntu has IBM ACE 11 Developer Edition installed, which makes me not able to use the IBM/java path to run the Oracle SQL Developer. So I downloaded and ...
cookick's user avatar
0 votes
1 answer
253 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
5 votes
3 answers
16k 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
998 views

line 56: /bin /java: no such file or directory

I have this problem running zmprov on Ubuntu 16.04: /opt/zimbra/bin/zmjava: line 56:/bin/java: no such file or directory. I run the required commands but cannot fix the problem, here is some useful ...
rjmontan's user avatar
1 vote
1 answer
53 views

Changing Java Path

Why do I see both jdk 1.8 and jdk 11 in my java home? How do I make it so jdk 11 is the only version that is used? tacchino@tacchino-MS-7B79:~$ echo $JAVA_HOME /app/lang/java/jdk1.8.0_64 tacchino@...
rbj's user avatar
  • 101
-1 votes
1 answer
805 views

How do I permanently set an Environment PATH Variable for any Application Program?

In the last four days, I installed both JDK and Android Studio to build my flutter app in Ubuntu 20.04. Afterwards, I did set the Environment Variables $PATH to both JDK and flutter using export PATH=&...
Kashir hasnain's user avatar
0 votes
0 answers
201 views

Problem while installing eclipse on Ubuntu

Been trying to install the lastest version of Eclipse from the official website, but whenever I begin installing the IDE, an error occurs. I've already tried to uninstall completely all the java ...
Yeeno's user avatar
  • 1
0 votes
0 answers
2k views

No plugin found for prefix 'archetype' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] - Netbeans

I was trying to make new Web Application project using Maven in Netbeans IDE 8.2 but the project creation keeps failing with error: -DarchetypeGroupId=org.codehaus.mojo.archetypes -...
Shreyas Jadhav's user avatar
1 vote
1 answer
10k views

Unable to find tools.jar in JDK in Ubuntu

I have used the following command to install openjdk sudo apt install openjdk-11-jdk But there seems to be no lib/tools.jar present. I am sure that it is the jdk that I have downloaded and not the jre....
kannavkm's user avatar
2 votes
1 answer
888 views

Which OpenJDK Build does Ubuntu use?

Which OpenJDK 11 Build does Ubuntu install by default? My understanding is that beginning by OpenJDK 11, Oracle doesn't support OpenJDK long term. That is why that other builds like AdoptOpenJDK ...
Caranthir's user avatar
1 vote
1 answer
3k views

Cannot Install OpenJDK on Ubuntu 18.04

I tried several ways to install openjdk and here is what I get when I do: java -version openjdk version "11.0.4" 2019-07-16 OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-...
noobcoder's user avatar
0 votes
0 answers
872 views

Java Version Problem

Ubuntu version: 16.04 I was using the Java 11 last times and also I have java 11 on my computer. Somehow reason some program doesnt work with java 11 so I decide the remove it but. It doesnt remove I ...
hobik's user avatar
  • 101

1
2 3 4 5
12