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

learn more… | top users | synonyms

276
votes
23answers
426k 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 ...
252
votes
0answers
337k 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/?
82
votes
11answers
186k 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?
10
votes
2answers
14k 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 ...
12
votes
6answers
26k 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 ...
6
votes
3answers
35k views

How to remove Oracle JDK

I didn't find article any related articles 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 ...
13
votes
2answers
12k 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 ...
27
votes
4answers
96k 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 ...
15
votes
4answers
28k 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 ...
7
votes
3answers
8k 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 ...
2
votes
1answer
1k views

How do I get ORACLE JAVA SE 7 to work?

I am a newbie to Ubuntu, so kindly be considerate. I recently manually downloaded & installed (Java SE 7ux) JavaSE 1.7.0_51. Linux x64 (for 64-bit system) "tar.gz" package. My Ubuntu version is ...
0
votes
2answers
99 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 ...
4
votes
4answers
13k 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: ...
0
votes
1answer
7k 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 ...
19
votes
2answers
28k 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 ...
4
votes
1answer
336 views

Pointer position way off in Java Application menu's when using gnome-shell

When using any java application in gnome-shell if the window is maximised the pointer position is way off; but only on the menu's, in the editor, or the side panel, the pointer is fine. This only ...
6
votes
1answer
22k 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 ...
3
votes
2answers
14k views

update-alternatives: error: no alternatives for

I tried to follow the excellent answer to the question How to correctly remove OpenJDK and JRE and set the system use only and only Sun JDK and JRE?, but there seem to be some side effects: ...
2
votes
0answers
175 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 ...
2
votes
2answers
168 views

search command for packages in Ubuntu terminal to search updates and patches of the package specifically

Can I know what is the command to search any package using the terminal, if I only know the name of the Software like, if I want to search VLC or JDK,JRE.. etc If I do not know what is the url where ...
2
votes
2answers
2k views

Not recognize JDK after installation in ubuntu 12.10

I did these steps without error: JDK path : Downloads/jdk-6u37-linux-x64.bin Commands in Terminal : mkdir Programs cd Programs bash ../Downloads/jdk-6u37-linux-x64.bin ...
3
votes
0answers
10k views

How to properly set up Sun's JDK? [duplicate]

Possible Duplicate: How do I install Oracle's JDK 6? I'm trying to manually install the Sun JDK package (I have my reasons, don't bother asking why). I've successfully extracted the ...
2
votes
2answers
21k 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 ...
2
votes
1answer
3k views

How can I remove my current JDK and install default JDK? [duplicate]

I have Ubuntu 12.10 x64 installed on a virtual device (VMware workstation) on a host system Windows 8. I downloaded android source code. I wanted to build it, and it says: Checking build tools ...
1
vote
1answer
840 views

How to intall Oracle JDK 32bit on Ubuntu 12.04 64bit along side the 64bit oracle jdk

I'm trying to transfer to 64 bit Ubuntu 12.04 from 32 bit Ubuntu 12.04. ADT for eclipse and the Android SDK requires 32bit Java but I would like to keep the 64 bit Java that I just got installed to ...
1
vote
2answers
16k views

Eclipse can't find JDK 7

I've got Oracle JDK 7 installed javac -version yields javac 1.7.0 and the JRE is installed and enabled in Eclipse > Preferences > Installed JREs (As location: /usr/lib/jvm/jdk1.7.0) But trying to ...
0
votes
2answers
2k views

How can I uninstall my current java and install sun java 1.6

I installed jdk using the following command: sudo apt-get install default-jdk but it is the wrong version. I need Java SE 1.6 for building Android. When I try building Android, I get a ...