Questions relating to the installing and use of the Java Development Kit (jdk)
Questions tagged [jdk]
576 questions
577
votes
28 answers
How can I install Sun/Oracle's proprietary Java JDK 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 7, I followed this way to install Java 6.
But it…
Benjamin
- 10,229
249
votes
0 answers
How do I install Oracle Java JDK 7?
If I downloaded the latest JDK from Oracle, do I just download the .tar file and extract it to /usr/lib/jvm/?
user22744
- 2,501
206
votes
7 answers
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 apt-add-repository ppa:webupd8team/java
sudo…
mcExchange
- 3,398
107
votes
10 answers
How do I install Oracle JDK 6?
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
- 4,289
105
votes
4 answers
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 experiments).
I'm not sure which version of java…
Stramato
- 1,477
85
votes
4 answers
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
- 969
84
votes
3 answers
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
- 5,247
72
votes
14 answers
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 JDK unpacked on a mounted partition like…
user827992
- 2,901
59
votes
4 answers
How to update from webupd8 team PPA (Oracle JDK 8/9) that got inconsistent with its GPG key?
A few days ago, I started getting the following error when performing apt-get update:
E: Repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease' changed its 'Label' value from 'Oracle Java (JDK) 8 / 9 Installer PPA' to…
mfg
- 1,407
48
votes
8 answers
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 JDK 1.6 location.
But when I select its directory…
Lucio
- 19,191
- 32
- 112
- 191
48
votes
9 answers
'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 "idea.sh", an error message pops-up:
'tools.jar' is…
Patrick
- 481
42
votes
5 answers
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 when I issue echo $JAVA_HOME I clearly see that…
Hossein
- 1,777
41
votes
6 answers
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 around for an all in one script, or some scripts I…
spences10
- 2,652
35
votes
3 answers
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 this article How do I install Oracle Java JDK 7.…
obysr
- 780
33
votes
2 answers
installed jdk by and have Error: Could not create the Java Virtual Machine
I am getting my new laptop going and went to install the latest oracle JDK 7u25. I followed the instructions on this site to do it.
Afterwards when I type java --version in the terminal I get the error:
Error: Could not create the Java Virtual…
John
- 691