Thursday, August 09, 2012

How to install JAVA On Ubuntu


Follow these steps to install JAVA on Ubuntu.

1) Download the java version from this link
2) $chmod a+x jdk-6u33-linux-x64.bin
3) ./jdk-6u33-linux-x64.bin
  This will extract with whole folder contents.
4) place the extracted folder into /usr/bin/
5) edit the bashrc file. add the below line.
   $sudo gedit .bashrc
   $export PATH=$PATH:/usr/bin/jdk1.6.0_33/bin

How to check about the Java installation.
Open terminal, and execute these commands
1) $java -version
2) $which java