Jdk 6.0 update 6 installed sucessfully but java command not working
Posted
by
Ravi.Kumar
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Ravi.Kumar
Published on 2012-12-15T14:44:08Z
Indexed on
2012/12/15
17:18 UTC
Read the original article
Hit count: 363
I switched to linux (Ubuntu 12.04) this morning and find it great but messed up while installing java. :-(.
I have installed jdk6.0_6 successfully but when I run java command in terminal, I get this
ravi@ravi-LIFEBOOK-AH531:~$ java
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
* gcj-4.5-jre-headless
* openjdk-7-jre-headless
Try: sudo apt-get install <selected package>
Could someone help me with this?
Below are the steps that I followed to install:
- copied file named
jdk-6u6-linux-x64.bin
to my documents - from terminal executed
chmod a+x jdk-6u6-linux-x64.bin
- and then executed
sudo ./jdk-6u6-linux-x64.bin
- In terminal I accepted the license agreement and done.
© Ask Ubuntu or respective owner