Questions tagged [jdk]

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

152 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
991 views

How to use Alternative JVM for OpenJDK, using Zero/Shark on Ubuntu?

I have installed openjdk-8-jre-zero_8u212-b03-0ubuntu1.16.04.1_amd64.deb from http://debina.ktu.lt/ubuntu/pool/universe/o/openjdk-8/ This suppose to be an Alternative JVM for OpenJDK, using Zero/...
adamm's user avatar
  • 141
4 votes
1 answer
743 views

Error while installing Oracle JDK 8 in Ubuntu 15.04

These commands both run successfully sudo add-apt-repository ppa:webupd8team/java sudo apt-get update But when I run sudo apt-get install oracle-java8-installer, it downloads the JDK but then ...
Drashti Pandya's user avatar
3 votes
0 answers
2k 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 ...
Wasim Aftab's user avatar
3 votes
2 answers
16k views

eclipse: class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Since the update yesterday (yes, the linux update), eclipse denies me to run even the most simple helloworld: has been compiled by a more recent version of the Java Runtime (class file version 53.0), ...
Asqiir's user avatar
  • 417
3 votes
0 answers
505 views

JDK related error while installing git

I was installing git on my ubuntu 14.04 with terminal command apt-get install git, but following logs was output showing that there may be something wrong with JDK, but I do have install jdk on my ...
Summer Sun's user avatar
3 votes
0 answers
623 views

Unable to start topcoder arena in Ubuntu 14.04

When I want to clear cache using javaws - viewer these error comes. I am trying to launch my topcoder arena. Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Exception in ...
Nazmul Khan's user avatar
2 votes
0 answers
404 views

JavaFX on Ubuntu 18.04

On Lubuntu 18.04, I have NetBeans 11, Oracle JDK 12, Open JDK 11, and openjfx installed. Attempting to make any javafx project to run. If I open a javafx sample, with jdk 12 selected, netbeans ...
Nele's user avatar
  • 31
2 votes
0 answers
3k views

Uninstalling Netbeans 8.2 in Ubuntu 18.04

When I try to run uninstall.sh (Netbeans) it says: Unsupported JVM version at /usr/lib/java/jdk1.8.0_144 But what I did before: downloaded jdk 10.0.1 stored it in /usr/local/java updated /usr/...
Shahin's user avatar
  • 743
2 votes
0 answers
174 views

Install and setup java JDK from Oracle

Trying to understand what and why should be done while installing JDK 9 from Oracle from fresh. I have downloaded archive jdk-9.0.1_linux-x64_bin.tar.gz. I found that this archive contains whole java ...
vico's user avatar
  • 4,527
2 votes
0 answers
675 views

Ubuntu 17.04 - JDK 9 with IntelliJ IDEA 2017.2.3 issue

To make it simple, When I tried OpenJDK 9, IntelliJ IDEA won't startup, just showing an error dialog saying something like com.intellij.ide.plugins.PluginManager$StartupAbortedException: java.lang....
Triết Nguyễn's user avatar
2 votes
0 answers
444 views

Netbeans 8.1 randomly crashes on Ubuntu 17.04 GNOME (Wayland)

I have OpenJDK 8 and Netbeans 8.1 installed on Ubuntu GNOME 17.04, Wayland. (everything installed from apt, No PPA). The crash is not observable on GNOME Legacy session. Only on Wayland. More ...
Himanshu Shekhar's user avatar
2 votes
1 answer
3k views

webupd8 oracle-java-9-installer failing with 404

When I was installing java jdk using sudo apt-get install build-essential I was getting the error 404 the file was not found after I followed the solution given in Can't install Oracle JDK 9 ...
Saeed Manaffam's user avatar
2 votes
0 answers
1k views

Java installed and configured but unable to run

I have OpenJDK 8 installed and configured in the path, but when I try to run Java (such as running a JAR), I get the error: The program 'java' can be found in the following packages: * default-jre *...
Shivashriganesh Mahato's user avatar
2 votes
0 answers
1k views

How to remove the config file of eclipse(default)

In my Ubuntu 16.04, I installed eclipse. But Java perspective is not working. I have installed open-jdk but Java perspective is not coming up. When I tried they are getting the java perspective by ...
Suraj Kumar's user avatar
2 votes
0 answers
289 views

Is there anything wrong with java-package?

There is a question about How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? There are 23 answers at the moment, most of them are either explaining how to do it manually (unpack, move ...
Sacha K's user avatar
  • 301
2 votes
1 answer
2k views

How can I Install Java JDK7, apache tomcat , eclipse , spring tool suite in my ubuntu 14.04?

could anyone tell me how to install Java JDK7 , apache tomcat , eclipse , spring tool suite in my ubuntu 14.04 ? Provide proper steps .
Prabakaran's user avatar
2 votes
1 answer
75 views

Are there any reliable sources with more frequent jdk icedtea package releases?

I use the canonical repository for retrieving updates from the jdk icedtea, but it seems that it is lagging a lot behind what is supposed to be the latest stable version as per the icedtea website (...
Thomas's user avatar
  • 143
2 votes
1 answer
434 views

Removed JDK6, installed JDK7. JAVA_HOME broke and javac not installed

I am finding that the javac is not in the java-7-openjdk-i386 package. Problem 1: $ javac The program 'javac' can be found in the following packages: * default-jdk * ecj * gcj-...
David Lionel Parker's user avatar
2 votes
1 answer
564 views

java MainServer gives java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0

Compiling is easy but when using java to run the programs, it gives Exception found. I am using Ubuntu 12.04 without internet connections. Also, installed Oracle JDK7 and JRE7. Also did the update-...
Paradox's user avatar
  • 21
1 vote
1 answer
142 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
293 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
1 vote
0 answers
573 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 vote
0 answers
506 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
1 vote
1 answer
2k views

Error: The specified folder does not contain a Java platform

I am using Netbeans 11 and JDK 11 on Ubuntu 16.4. Why am I getting this error in the platform manager? I also get "Broken Platform JDK 11 (Default)" in my project Libraries.
Roger's user avatar
  • 11
1 vote
0 answers
4k views

Can't Change Java Versions alternatives on Linux

I already read many similar posts online, but can't seem to arrive at a solution. I want to be able to switch between java versions. Thanks in advance! OS: Ubuntu 16.04.6 LTS x86_64 I already ...
ConnectionistSystems's user avatar
1 vote
1 answer
313 views

Open a .jar with JDK 12 in Ubuntu 18

I have applications that require the JDK-12 of Java. I used to run my applications in the OpenJDK Java 8 Runtime (those were SWIFT applications, so all I had to do, was double click on them). But now, ...
Ameno's user avatar
  • 11
1 vote
2 answers
2k views

Javax not found after install JDK 11

After I have installed Oracle Java 11 in my Ubuntu XMind stoped working. With original Java version it was working fine. I'm getting error: !SESSION 2019-06-30 13:55:02.941 ---------------------------...
vico's user avatar
  • 4,527
1 vote
1 answer
4k views

OpenJDK - Installing JDK Debug Symbols manually

i have all OpenJDK8 files and its debugging symbols, i can get OpenJDK working but when i try to use something that is used to debug, i'm still getting errors related to the dbg files, i don't know ...
DiegoConD's user avatar
1 vote
0 answers
6k views

How to make IcedTea use OpenJDK instead of (no longer installed) Oracle Java?

I had some issues with an .jnlp file using OpenJDK so I installed Oracle Java. It didn't work either, so I uninstalled it (the config folder is still there though). Now, if I want to open something ...
x n's user avatar
  • 11
1 vote
0 answers
529 views

Netbeans 8.2 cannot create new projects

I have had uncountable problems with Netbeans on Ubuntu and derivative distros. I had downloaded and installed oracle jdk 8 and as far as I know it was set as default. After that I installed Netbeans ...
Sergio's user avatar
  • 43
1 vote
1 answer
2k views

NetBeans isn't opening on Ubuntu 18.04

I'm a new Ubuntu Linux user and I thought to start learning java with this new environment. I started to install java and NetBeans by searching google, java installed but not NetBeans. I searched more ...
Loknath Dhar's user avatar
1 vote
0 answers
455 views

How to I configure the home.java variable for vscode in ubuntu 16.04?

In Eclipse, java development is seamless and works just fine. However, Visual Studio Code doesn't seem to recognize the java installation and demands that you manually input its whereabouts. I've had ...
user875328's user avatar
1 vote
0 answers
325 views

install 32bit eclipse parallel to 64bit eclipse in 64bit ubuntu

My preferred java IDE is eclipse. Since I own a lego robot (NXJ) I want to use Java For Lego Mindstorms. I found out I have to use all 32bit architecture since the usb drives won't work otherwise. ("...
Asqiir's user avatar
  • 417
1 vote
0 answers
3k views

Running WSO2 IS on Ubuntu - CARBON cannot execute Java

I'm using Ubuntu 16.04 64-bit. I'm logged in to Ubuntu as user1. I installed Oracle JDK version jdk1.8.0_144 to /usr/local/java and set symlinks as $ sudo update-alternatives --install "/usr/bin/java"...
kovac's user avatar
  • 121
1 vote
0 answers
667 views

Issue in run the sqldeveloper in terminal

I am facing the issue during run the sqldevleoper in the terminal, for that installed JDK 1.8 in my machine even though it showing like. Please refer the below error and share your solution to that. ...
Ramesh M's user avatar
1 vote
1 answer
980 views

How do I stop oracle JDK from hijacking PATH and breaking update-alternatives?

I installed oracle jdk on ubuntu 14.04. Now I want to toggle back to openjdk: sudo update-alternatives --config java sudo update-alternatives --config javac But it doesn't work. It seems oracle's ...
jozxyqk's user avatar
  • 1,111
1 vote
0 answers
3k views

maven error.... Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java/bin/java

I've just installed maven, but when I check the version of maven I get an error $ mvn -version Error: JAVA_HOME is not defined Correctly. We can not execute /usr/lib/jvm/java-8-openjdk-amd64/jre/...
Said's user avatar
  • 11
1 vote
1 answer
364 views

Installing Java from console

I have tried to install Java using the following instruction: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer But after sudo add-apt-...
Denis Kotov's user avatar
1 vote
0 answers
2k views

Eclipse won't run - JVM Terminated, Ubuntu 16.04

Installed eclipse neon using installer from eclipse website. I have java 8 jdk from oracle. When trying to run eclipse i get the following: JVM terminated. Exit code=13 /usr/lib/jvm/java-8-oracle/bin/...
Adiel's user avatar
  • 193
1 vote
0 answers
500 views

Successfully Installed Java JDK 8, But Alternative JRE is Attempted to be Used

when I run java -version, I get this: java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode) $JAVA_HOME is ...
HoopsMcCann's user avatar
1 vote
0 answers
1k views

Error installing Android SDK

When trying to follow step 3 of this answer, I get an error when launching ./android command from the folder android-sdk-linux/tools folder: perissf@perissf-ubuntu:~/Scaricati/android-sdk-...
perissf's user avatar
  • 111
1 vote
0 answers
117 views

How to change jdk path in Ubuntu?

I have downloaded the jdk 91 update from the oracle.com I want to apply this update. I kept the .tar.gz file in the directory having path /home/amrit/jdk8/. I tarball and extracted the file. Now when ...
ok_ape's user avatar
  • 11
1 vote
0 answers
1k views

installation of openjdk-8 vs oracle jdk8

I am using Netbeans which I prefer Oracle jdk8. Just now Ubuntu said I had an incomplete upgrade to 16.04. No problem, I let it do its thing. To my surprise it removed Oracle JDK and put openjdk in ...
Ilan's user avatar
  • 773
1 vote
2 answers
2k views

Java will not run at all and is not recognized as a command no matter how many times I install it

I have been fighting with Java for nearly a week now. Please bear with me, I'm very new to linux and Ubuntu. I first attempted to install the JDK as the following site had written, which did not work....
Ethan Z's user avatar
  • 111
1 vote
0 answers
474 views

Unable to install anything using apt-get

I looked through some threads and couldn't find a solution, apologies if this is a duplicate. After messing up an installation of some package (see below), attempting to install anything yields: $ ...
noobthrow's user avatar
1 vote
0 answers
70 views

var lock issue right after installing JDK and soapUI on my machine

I have been dealing with an issue all day here. I cannot seem to have apt-get work for anything whatsoever. I have been through several parameters here including trying these following solutions: ...
Neophoenix's user avatar
1 vote
0 answers
4k views

How to install Java development kit 8 on 64 bit Ubuntu 14.04

I have been using Ubuntu as my first flavour of Linux for about a week. I am facing problem installing the Sun Java Development Kit (JDK 8) The downloaded files are in .tar.gz extension, i have gone ...
Himanshu Sharma's user avatar
1 vote
0 answers
104 views

Oracle JAVA IDEs freeze

I experience a freeze since few months. I'm using Phpstorm and since june I has to downgrade java (oracle, phpstorm can't work with openJdk) jdk from 8 to 6 to avoid a freeze when the IDE is indexing ...
Jihel's user avatar
  • 111
1 vote
0 answers
2k views

Can't find JDK for Unity3d development

I'm developing on Unity3d 5.2 a game which should be build for an Android. I use Ubuntu 14.04. I used: sudo apt-get install openjdk-7-jdk to install java. Set $JAVA_HOME and $PATH variables in ....
wasd's user avatar
  • 359
1 vote
1 answer
1k views

Gradle sync failed: cannot detect java version

Im running ubuntu 14.04.3 I installed android studio using: sudo apt-add-repository ppa:paolorotolo/adroid-studio and installed the oracle jdk 8 using: sudo apt-get install oracle-java8-...
user avatar