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

learn more… | top users | synonyms

437
votes
25answers
696k 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 ...
251
votes
0answers
338k 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/?
95
votes
10answers
244k 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?
23
votes
9answers
76k 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 ...
16
votes
2answers
19k 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 ...
14
votes
3answers
34k 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 "...
18
votes
3answers
80k 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 ...
22
votes
4answers
102k 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 ...
44
votes
4answers
191k 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 ...
41
votes
8answers
88k 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 "...
4
votes
4answers
10k 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....
3
votes
3answers
60k 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 ...
5
votes
2answers
13k views

Android Studo showing :“OpenJDK shows intermittent performance and UI issues.”

I have recently installed Android Studio on my Ubuntu 12.10 64bit machine, but every time that I opened it kept giving the following error "OpenJDK shows intermittent performance and UI issues. We ...
3
votes
1answer
1k views

Download failed : Oracle JDK 7 is NOT installed

When i try to install something it gives me this error: HTTP request sent, awaiting response... 403 Forbidden 2014-04-23 09:32:53 ERROR 403: Forbidden. download failed Oracle JDK 7 is ...
2
votes
1answer
8k 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 ...
2
votes
1answer
3k 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.
0
votes
2answers
317 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 ...
7
votes
2answers
8k 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 ...
4
votes
4answers
19k 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-...
3
votes
3answers
5k views

How can I install Openjdk on Ubuntu 16.04?

Since I upgrade to the latest version of Ubuntu, cannot install Java OpenJDK needed to compile android custom roms, when I run sudo apt-get install openjdk-7-jdk appear the following error: Reading ...
2
votes
2answers
4k 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 ...
0
votes
1answer
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 ...
43
votes
3answers
91k 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 `/...
7
votes
2answers
11k 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 ...
25
votes
5answers
116k 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 ...
13
votes
1answer
57k 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/...
5
votes
3answers
1k views

How do I install the Sun Java Development Kit (JDK 7)?

How to install JDK 7 on Ubuntu? The installation should be with the tar archive. I know the basic installation with the bin, but how to do with only a tar archive?
4
votes
2answers
7k 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 ...
3
votes
2answers
16k 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: root@...
2
votes
2answers
401 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 ...
2
votes
0answers
461 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
0answers
268 views

Script not working through Cron - JDK version mismatch between shell and script

I am executing a script through cron using the below command: */10 * * * * cd /nas/app/someFolder/psox; ./RunPSOX.sh >> /tmp/trial.log 2>&1 This is being executed by root user. All ...
2
votes
2answers
27k 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 ...
1
vote
1answer
3k views

Eclipse only starts with sudo command from terminal

I have to start by saying that I have just switched to Ubuntu from Windows and I am new to Linux in general. Coming from Windows, I really am not familiar with how exactly the permissions work, the ...
1
vote
1answer
128 views

How to remove OpenJDK-9 and all related file to JDK

I know there are many similar post on here regarding issue i am having and trust me I have tried most of them and did not solve my issue. I am trying to uninstall all the JDK files installed in my ...
1
vote
1answer
2k views

Problems installing Oracle java 1.8

I'm running Ubuntu 14.04. I'm trying to install Oracle java 8. I downloaded the .rpm file published by Oracle: jdk-8u20-linux-x64.rpm and then ran the following commands trying to install it: $ ...
0
votes
2answers
4k 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 message:...