Questions tagged [jdk]
Questions relating to the installing and use of the Java Development Kit (jdk)
564
questions
0
votes
0
answers
17
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.
1
vote
0
answers
54
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 ...
0
votes
1
answer
31
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-...
0
votes
1
answer
107
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 ...
0
votes
0
answers
146
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 ...
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: ...
1
vote
1
answer
181
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
728
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 ...
0
votes
1
answer
193
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 ...
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
...
13
votes
1
answer
23k
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/
-1
votes
1
answer
160
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 ...
0
votes
0
answers
133
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 ...
0
votes
1
answer
560
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 ...
0
votes
1
answer
189
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.
...
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-...
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, ...
2
votes
3
answers
8k
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 ...
1
vote
1
answer
3k
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 ...
1
vote
1
answer
464
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/...
1
vote
0
answers
226
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 -...
3
votes
1
answer
8k
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 ...
0
votes
3
answers
402
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://...
0
votes
1
answer
586
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....
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 ...
1
vote
0
answers
287
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 ...
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 ...
0
votes
1
answer
187
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 ...
0
votes
1
answer
4k
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.
0
votes
1
answer
66
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 ...
0
votes
2
answers
1k
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 ...
0
votes
1
answer
202
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 ...
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 ...
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 ...
0
votes
1
answer
819
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 ...
1
vote
1
answer
50
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@...
-1
votes
1
answer
566
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=&...
0
votes
0
answers
152
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 ...
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 -...
1
vote
1
answer
7k
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....
1
vote
1
answer
602
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 ...
1
vote
1
answer
2k
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-...
0
votes
0
answers
696
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 ...
3
votes
1
answer
4k
views
Changing Default JDK On Ubuntu 20.10
I'm having trouble changing the default version of Java on Ubuntu 20.10.
I want to change the default version of Java JDK from Graal to OpenJDK 13.
I start by checking the default version:
$ java -...
0
votes
0
answers
101
views
downloaded intellij from ubuntu software it is working fine but when I type java -version on terminal the command java is not recognied pops up
My intellij program works fine and runs programs as well but when I tried to check versions from terminal the terminal did not recognize "java" in "java -version" command. Also ...
3
votes
0
answers
1k
views
can't see new alternative java after installing jdk 11
I downloaded .deb file for JDK11 from https://www.oracle.com/java/technologies/javase-jdk11-downloads.html. After installation (ubuntu 18.04) when I run update-alternatives --config java, I don't see ...
1
vote
0
answers
158
views
Error trying to install JDK 14, would not let me uninstall or reinstall, deleted the whole jvm folder [duplicate]
downloaded and ran deb file for latest jdk, pc crashed midway. restart and try again, says file not supported. ran java -version, says I have jdk 11. ran sudo apt install default-jdk, says "The ...
0
votes
1
answer
2k
views
running jvmtop profile & the JAVA_HOME environment variable
Note: It seems jvmtop is simply broken with Java 11. I would also accept alternative Java process profiling options for Ubuntu 20.04 (terminal only) & Java 11, if instructions for installation and ...
5
votes
1
answer
3k
views
How to install java 8.0.232 Ubuntu 18.0.4
I need to install the 8.0.232 openjdk version. I am using sdkman and the result of sdk list java is:
Java.net | | 15.ea.25 | open | | 15.ea.25-open
| ...
1
vote
1
answer
1k
views
Apache Netbeans 11.3 not running unless I use terminal and set jdkhome
I had Apache NetBeans 11.1 with JDK 11 running fine.
Then NetBeans upgraded to 11.3, and for some reason it didn't see JDK, so I downloaded JDK 14 and added it to NetBeans Platforms. All working fine....