Questions tagged [jdk]

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

Filter by
Sorted by
Tagged with
577 votes
28 answers
923k views

How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle? Before release Java ...
Benjamin's user avatar
  • 10.2k
249 votes
0 answers
339k views

How do I install Oracle Java JDK 7? [duplicate]

If I downloaded the latest JDK from Oracle, do I just download the .tar file and extract it to /usr/lib/jvm/?
user22744's user avatar
  • 2,501
107 votes
10 answers
319k views

How do I install Oracle JDK 6? [duplicate]

Most of the software is not thoroughly tested with Java 7 and I would like to install Oracle's JDK 6.0 on Ubuntu 11.10. Could someone please provide me the instructions for the same?
Praveen Sripati's user avatar
7 votes
2 answers
14k views

Cannot install Oracle JDK via apt in Ubuntu 16.04

I created a new Ubuntu 16.04.3 VM and am attempting to install JDK 9. Unfortunately, the latest version of the JDK apt installer, 9.0.1-1~webupd8~0, is failing to download the binaries and I suspect ...
PicoDeGallo's user avatar
184 votes
6 answers
592k views

Switch between multiple java versions

While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a solution of how to install a newer Oracle version of Java: sudo ...
mcExchange's user avatar
  • 3,118
35 votes
3 answers
186k views

How to remove Oracle JDK

I didn't find any related articles about How to remove Oracle JDK. There are some related articles but they didn't solve the problem. I installed Oracle JDK tarball file from Oracle site by following ...
obysr's user avatar
  • 780
71 votes
14 answers
210k views

How do I make java default to a manually installed JRE/JDK?

I have Ubuntu 12.04 amd64 installed on my machine, on the previous versions of Ubuntu it was deadly easy, now there is this command update-java-alternatives with a really bad man page. I just have my ...
user827992's user avatar
  • 2,851
24 votes
5 answers
91k views

JavaFX missing, Ubuntu 18.04

I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing. I installed Java JDK with NetBeans from Oracle's site and ...
maria's user avatar
  • 915
17 votes
4 answers
19k views

Can't install Oracle JDK 9

I uninstalled jdk packages and now can't install them back. I managed to install oracle-java7-installer and oracle-java8-installer but can't install oracle-java9-installer. It seems that my computer ...
Akseli Arvaja's user avatar
6 votes
3 answers
16k views

Update to latest version of java after ppa is discontinued

I have been trying to install the latest version of java-8. However, I found out that the PPA ppa:webupd8team/java has been discontinued due to changes in the java licence. How should I update my ...
deann's user avatar
  • 183
41 votes
6 answers
209k views

Setup and install IntelliJ with JDK

Is there any scripts for downloading and installing IntelliJ with JavaJDK or OpenJDK? I don't know how I did it before using Ubuntu 12.10 but I'm now on a fresh 13.04 install and I have been looking ...
spences10's user avatar
  • 2,592
18 votes
2 answers
36k views

Changing JVM in Java

I only recently discovered the different JVM's on the wiki page and thought I'd start tinkering. Its been difficult to find documentation on how to configure Java on Ubuntu though. Lets say I wanted ...
OVERTONE's user avatar
  • 2,307
30 votes
3 answers
86k views

How can I install OpenJDK on Ubuntu 16.04? [duplicate]

Since I upgraded to the latest version of Ubuntu, I cannot install the Java OpenJDK package needed to compile Android custom ROMs. When I run sudo apt-get install openjdk-7-jdk, the following error ...
Hakam El Assouad's user avatar
22 votes
3 answers
69k views

"No such file or directory" when invoking java

I'm trying to re-install Oracle JDK 7 32 bit to 64 bit Ubuntu (previously 64 bit JDK was installed). JDK is currently present at /usr/lib/jvm/jdk1.7.0. I invoke sudo update-alternatives --remove "...
Andrei Botalov's user avatar
85 votes
4 answers
200k views

Setting JDK 7 as default

four@twenty:~$ file /etc/alternatives/java /etc/alternatives/javac /etc/alternatives/java:symbolic link to `/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java' /etc/alternatives/javac:symbolic link to `/...
Wingsuit's user avatar
  • 969
32 votes
4 answers
101k views

netbeans not all requested modules can be enabled

I know this question has already been posted, but the solutions provided don't work for me. I added the webupd8team/java repository and installed oracle-java8-installer and oracle-java8-set-default. I ...
Jonathan De Felice's user avatar
13 votes
3 answers
67k views

How can i install jdk7 on ubuntu 18.04 lts 64bit? [duplicate]

I upgrade my system to ubuntu 18.04 lts, but I work on projects that require JDK 7. How can i install jdk7 on ubuntu 18.04 lts 64bit?
sana's user avatar
  • 633
5 votes
5 answers
20k views

Install JDK in Ubuntu

I am trying to install oracle jdk7 64bit on my computer. I found this How do I install Oracle Java JDK 7? It uses update-alternative -install to install the JDK which is new to me. I used to only ...
hguser's user avatar
  • 295
5 votes
3 answers
25k views

Can't reset my JAVA_HOME to new Open JDK 11 Java installation

OS: UBUNTU 18.04 I had installed Oracle Java 8 earlier. But decided to switch to open JDK 11. it's successfully installed. java -version openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime ...
pra-bhu's user avatar
  • 53
104 votes
4 answers
460k views

How can I tell what version of Java I have installed?

I want to start toying around with java (eventually getting to the point where I can write basic little programs for android or web), but I've managed to have java messed up on my computer (from past ...
Stramato's user avatar
  • 1,467
24 votes
5 answers
27k views

How to install the OpenJDK 8 (Ubuntu 19.04)?

Only openjdk-11-jdk and newer seem to be available. Is there any way to install the OpenJDK 8? Preferably without adding a PPA.
FliegendeWurst's user avatar
15 votes
3 answers
72k views

IcedTea plugin for OpenJDK 8

I updated from OpenJDK 7 to 8. I uninstalled 7, which uninstalled the IcedTea plugin as well. I tried to reinstall IcedTea with sudo apt-get install icedtea-7-plugin But it doesn't work. When I ...
Srikanth R's user avatar
10 votes
3 answers
52k views

How to set JAVA_HOME to point to a JDK installation?

I installed sun-java6-jdk. I need to find its home directory. JAVA_HOME must point to a JDK installation, not JRE.
Lesya Makhova's user avatar
4 votes
3 answers
94k views

How to setup Java-Home and Path in Ubuntu 12.04

we are new to Ubuntu.Recently we changed my server OS to ubuntu 12.04 from windows 7 . every one have their own login details. one of my college installed Open-Jdk7. I asked him, where you installed ...
ur truly friend's user avatar
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
2 votes
1 answer
2k views

Why Oracle discontinued Oracle Java (JDK) Installer PPA? [closed]

I tried to install OracleJDK 8 using sudo add-apt-repository ppa:webupd8team/java But it's not working. I searched the problem and found that "The Oracle JDK License has changed for releases ...
AJAY_AJ's user avatar
  • 21
48 votes
9 answers
114k views

'tools.jar' is not in IDEA classpath

I am a new user of Linux, it has been recommended to me by my friend. He told me to install software called IntelliJ Idea IDE. Well I have been following the tutorial. But now when I try to open "...
Patrick's user avatar
  • 481
47 votes
8 answers
332k views

How to set the JDK for Android Studio?

I can't compile a default new project for Android 2.1 because(?) the JDK used by Android Studio is JDK 1.7 but it should be JDK 1.6. To change it I go to File -> Project Structure and try to find the ...
Lucio's user avatar
  • 18.9k
42 votes
5 answers
95k views

Specify JDK for tomcat7

I have installed tomcat7 (using apt-get install) and whenever I want to start tomcat7 it says : * no JDK found - please set JAVA_HOME I have set JAVA_HOME in my bash.bashrc and also in ~/.bashrc and ...
Hossein's user avatar
  • 1,707
16 votes
1 answer
10k views

Ugly/Non Anti-Aliased fonts in Java-Swing Applications

I've recently switched to Ubuntu and I've installed Oracle's Java JDK 8u45 (32 bit) using the webupd8team/java repository. Everything seems to be working fine except that the Java-Swing applications ...
hexman's user avatar
  • 881
9 votes
2 answers
15k views

Problem with Java while trying to run pycharm-community-4.5

I've just installed pycharm-community-4.5 into my Ubuntu 14.04 (64 bit). After installing I ran the command /opt/pycharm-community-4.5/bin$ ./pycharm.sh to run pycharm but the terminal showed me some ...
Abdullah Al Imran's user avatar
9 votes
4 answers
38k views

How to install JDK8 on Ubuntu 16?

I needed JDK 8 for Bazel. I ran sudo apt-get install openjdk-8* on a freshly built Ubuntu 16.04.02 machine, but after installation update-alternatives --config java show two paths: /usr/lib/jvm/java-...
Old Geezer's user avatar
8 votes
1 answer
8k views

How to "install" multiple Java versions?

How do you have multiple Java versions in Ubuntu 18.04 LTS? In my Windows, I usually have 3 versions available for development. I do not have them installed in my system but rather, I can switch to ...
user avatar
6 votes
4 answers
16k views

Not all TTF fonts visible from the (Sun) JDK

I wanted to use Monaco.ttf with IntelliJ. Unfortunately it doesn't show up. I also noticed that the Monaco font doesn't appear in the list of fonts got from awt: java.awt.GraphicsEnvironment....
mkm's user avatar
  • 3,189
4 votes
4 answers
23k views

How to install JDK and Netbeans?

I have downloaded a .bin file for JDK and am trying to install it. I have used these commands: chmod +x jdk-6u23-linux-i586.bin sudo ./jdk-6u23-linux-i586.bin and got this output: sudo: ./jdk-6u23-...
Muhammad's user avatar
3 votes
1 answer
13k views

Unable to change execute permissions of .sh file [duplicate]

I'm out with a new problem. I've downloaded a jdk7.sh file. Now I'm unable to change the permission of the file to allow executing the file as a program. I mark the check box and again it disappears.
Siddharth Gurung's user avatar
2 votes
2 answers
6k views

Setup JDK for android studio

I was setting up android studio and got this So I followed the answer here and used sudo update-alternatives --set java /usr/local/java/jdk1.7.0_17/jre/bin/java sudo update-alternatives --set ...
Qwertie's user avatar
  • 886
1 vote
1 answer
7k views

Install 32-bit version of Oracle JDK 7 on a 64-bit Ubuntu?

I am using https://askubuntu.com/a/61873/23678 to install the 64-bit version of Oracle JDK 7 under Ubuntu 64-bit. Is there a way to tweak this mechanism to install the 32-bit JDK instead? If not, how ...
Gili's user avatar
  • 1,295
1 vote
1 answer
535 views

failing to install oracle-java7-installer,displaying 'E: Sub-process /usr/bin/dpkg returned an error code (1)'

I was setting up up android-studio referring to this website. While installing oracle-java7-installer, this error is displayed: sudo apt-get install oracle-java7-installer [sudo] password for cyan: ...
cayn's user avatar
  • 13
1 vote
1 answer
3k views

Which JDK version is compatible with Netbeans on Ubuntu?

I'm trying to install Netbeans on my Ubuntu. It was successfully installed but was unable to create new projects or new files. I have installed JDK 12 and then I removed it because I found here a ...
Hamza Yousaf's user avatar
0 votes
1 answer
8k views

How do I install oracle jdk 7 on ubuntu server 12.04? [duplicate]

Possible Duplicate: How can I install Sun/Oracle’s proprietary Java 6/7 JRE or JDK? Folks, I'm new in ubuntu server. As I understand it, Oracle retired the Operating System Distributor's License ...
Muhammad Sholihin's user avatar
0 votes
1 answer
13k views

JAVAFX_HOME path on ubuntu

So my problem is openjfx and using it on Scala-sbt project. The actual problem is JAVAFX_HOME path. First of all I have java version 10.0.2 installed on my computer and openjfx (which I take as JavaFX)...
Hjell's user avatar
  • 1
0 votes
2 answers
658 views

Where to write java programs on ubuntu?

I want on write java programs on ubuntu. I have java on my windows OS and I write programs in Notepad++ and compile and run it in command prompt. I installed java on ubuntu. What should I use to write ...
Sam's user avatar
  • 66
84 votes
3 answers
36k views

How to install JDK sources?

How can I download the source code of Java on my local machine, so I can reference it in an IDE?
AlikElzin-kilaka's user avatar
23 votes
2 answers
11k views

java-8-oracle (1.8.0_66) problem with PrintAssembly "Could not load hsdis-amd64.so"

I'm trying to run my programs with -XX:+PrintAssembly options but I always get message like: Java HotSpot(TM) 64-Bit Server VM warning: PrintAssembly is enabled; turning on DebugNonSafepoints to ...
Piotr Tarnowski's user avatar
18 votes
1 answer
90k views

how to install java 8 in ubuntu 16.04? [duplicate]

How to install java-JDK 8 & maven in Ubuntu 16.04 without adding any PPA?
Thirumal's user avatar
  • 989
16 votes
2 answers
50k views

Get error when install Oracle JDK 8 on Ubuntu 18.04 [duplicate]

I am trying install Oracle Java 8 on Ubuntu 18.04 LTS. $ java --version Command 'java' not found, but can be installed with: sudo apt install default-jre sudo apt install openjdk-11-jre-...
Cyrus the Great's user avatar
16 votes
5 answers
35k views

Error installing oracle-java8-installer from webup8team ppa

Does anyone know how to fix this? First I did: sudo add-apt-repository ppa:webupd8team/java Then I did: sudo apt-get update And then: $ sudo apt-get install oracle-java8-installer Reading ...
blaster2429's user avatar
16 votes
3 answers
51k views

Netbeans install error: The specified jdk folder does not contain jdk

During installation of Netbeans 7.3 I got this message the specified jdk folder does not contain jdk I have openjdk 7 installed on my system using apt-get. I tried to specify the path to /usr/lib/...
Nabil's user avatar
  • 2,142
15 votes
1 answer
72k views

"Please ensure you have JAVA_HOME points to JDK rather than JRE" message

I have java installed aaa@ubuntu:~$ whereis java java: /usr/bin/java /usr/bin/X11/java /usr/local/java /usr/share/java aaa@ubuntu:~$ whereis javac javac: /usr/bin/javac /usr/bin/X11/javac and etc/...
Alex Malex's user avatar
  • 2,632