Questions tagged [jdk]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 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. ...
user avatar
0 votes
0 answers
41 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-...
user avatar
  • 11
-1 votes
0 answers
35 views

how to apply Oracle Critical Patch Update Advisory - April 2022

yesterday my cloud armor flagged that I have to apply Oracle Critical Patch Update Advisory - April 2022 https://www.oracle.com/security-alerts/cpuapr2022.html I checked and found that jdk version is :...
user avatar
0 votes
0 answers
96 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, ...
user avatar
0 votes
1 answer
341 views

Java JDK wont install

just trying to install Java JDK as per this YT Tutorial: https://www.youtube.com/watch?v=ajKhjoWQTYI Getting to the part where we run sudo dpkg -i <FILENAME> and its giving me this: (Reading ...
user avatar
0 votes
0 answers
44 views

Change current java version with command and configuration file

I install ubuntu 20.04 with java 11 default but I want to upgrade for Java version 17. I came to oracle website and download jdk-17_linux-x64_bin.deb then install. After the progress I can see in new ...
user avatar
  • 21
1 vote
1 answer
519 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 ...
user avatar
1 vote
1 answer
107 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/...
user avatar
  • 47
1 vote
0 answers
71 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 -...
user avatar
  • 503
3 votes
1 answer
6k 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 ...
user avatar
  • 153
0 votes
3 answers
105 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://...
user avatar
0 votes
1 answer
155 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....
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 3
0 votes
0 answers
79 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 ...
user avatar
0 votes
0 answers
658 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 ...
user avatar
  • 1
0 votes
1 answer
80 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 ...
user avatar
0 votes
1 answer
596 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.
user avatar
  • 507
0 votes
1 answer
40 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 ...
user avatar
  • 507
0 votes
2 answers
577 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 ...
user avatar
0 votes
1 answer
91 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 ...
user avatar
4 votes
3 answers
5k 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 ...
user avatar
0 votes
1 answer
816 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 ...
user avatar
  • 196
0 votes
1 answer
502 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 ...
user avatar
1 vote
1 answer
40 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@...
user avatar
  • 101
-1 votes
1 answer
207 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=&...
user avatar
0 votes
0 answers
67 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 ...
user avatar
  • 1
0 votes
0 answers
1k 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 -...
user avatar
1 vote
1 answer
4k 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....
user avatar
  • 13
0 votes
1 answer
308 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 ...
user avatar
1 vote
1 answer
1k 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-...
user avatar
0 votes
0 answers
515 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 ...
user avatar
  • 1
2 votes
1 answer
2k 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 -...
user avatar
  • 239
0 votes
0 answers
67 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 ...
user avatar
3 votes
0 answers
606 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 ...
user avatar
1 vote
0 answers
120 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
5 votes
1 answer
2k 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 | ...
user avatar
0 votes
0 answers
1k views

Error occurred during initialization of boot layer java.lang.module.FindException: Module java.transaction not found

I am a biologist and new to linux. I am trying to install cytoscape_3.7.1 from thislink. I downloaded the tar file, extracted it and tried /cytoscape.sh. It gave this error Error occurred during ...
user avatar
1 vote
1 answer
670 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....
user avatar
1 vote
1 answer
1k views

How to set the project sources JDK version in Netbeans?

From the console javac builds with JDK 14 fine. Using sdkman to install JDK 14 as: thufir@dur:~$ thufir@dur:~$ which java /home/thufir/.sdkman/candidates/java/current/bin/java thufir@dur:~$ thufir@...
user avatar
  • 4,333
0 votes
1 answer
3k views

[ Solved ]: Cannot find version 14 of OpenJDK for Ubuntu 20.04

As of today (May 6th, 2020), the problem described below is now obsolate, because OpenJDK-14 has finally appeared in Ubuntu 20.04 repository. I've installed Ubuntu 20.04 Focal Fossa and was trying to ...
user avatar
3 votes
2 answers
4k views

Oracle JDK 11 Install and Setting to Default (NOT openJDK)

I have installed openJDK but want to default to regular JDK 11 (not OpenJDK). Steps I have taken: 1)java -version openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-...
user avatar
  • 101
0 votes
1 answer
936 views

How to install Java (not OpenJava) on Ubuntu 19.10

Please help! I have downloaded the .deb version of Java SE JDK from this site: https://www.oracle.com/java/technologies/javase-jdk11-downloads.html This .deb file is saved in my Downloads folder. ...
user avatar
  • 101
1 vote
1 answer
317 views

How to install Oracle JDK 14 on ubuntu 18.04 and make it be used by java applications?

there is answer for old versions here: How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? but there is a .deb file here: https://www.oracle.com/java/technologies/javase-jdk14-...
user avatar
  • 141
1 vote
1 answer
163 views

Please help with this specific fatal error upon trying to run a third party .jar file

I would like to run the open source program Zettelkasten; it would be great for my work and I hope very much you can help me to get it running!! Thanks in advance!!! The program is this: http://...
user avatar
  • 63
0 votes
1 answer
3k views

Need to install JDK 7.0 in Ubuntu 18.04

I was trying to install Jdk 1.7 using sudo add-apt-repository ppa:openjdk-r/ppa sudo apt update sudo apt install openjdk-7-jdk But getting the below error Reading package lists... Done Building ...
user avatar
4 votes
1 answer
3k views

How do I accept Oracle's license agreement while installing JDK? [duplicate]

I am trying to install Java on Ubuntu 18.04. by running: sudo apt install oracle-java14-installer But when I reach the part where I have to accept the license agreement there is link leading to the ...
user avatar
1 vote
1 answer
612 views

How to link a c++ program to jvm (java virtual machine)?

I am trying to follow this tutorial which creates a JVM from a c++ program. The program compiles but when it runs it fails with error while loading shared libraries: libjvm.so: cannot open shared ...
user avatar
  • 115
0 votes
0 answers
1k views

Ubuntu 18.04 Java Command Not Found Despite Being Installed

I initially had default-jdk and default-jre installed on Ubuntu 18.04. Attempted to host a Minecraft Server for a friend, but was given the error found here I followed the commentor's advice to ...
user avatar
2 votes
1 answer
842 views

How to run Scilab 5.5.2 on Ubuntu 16.04 LTS with all updates installed?

I have just ended clean installation of the Ubuntu 16.04 LTS. I installed Scilab here from the official repository as simple as sudo apt-get install scilab. Then I tried to launch it from the GUI, ...
user avatar
  • 88.7k

1
2 3 4 5
12