Friday, 8 February 2013

Oracle JDK Installation on Ubuntu 12.04

  • Download Oracle JDK
Go to download site http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

select jdk-7u13-linux-i586.tar.gz for 32bit JDK download.


* Extract the Tar file to required directory for example /opt/softwares-linux/jdk1.7.0_13/


* Install the pointer to the JDK locations

sudo update-alternatives –install “/usr/bin/java” “java” “/opt/softwares-linux/jdk1.7.0_13bin/java” 1

sudo update-alternatives –install “/usr/bin/javac” “javac” “/opt/softwares-linux/jdk1.7.0_13/bin/javac” 1


sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/opt/softwares-linux/jdk1.7.0_13/bin/javaws” 1


* Configure The default JDK configuration

sudo update-alternatives –config java
sudo update-alternatives –config javac
sudo update-alternatives –config javaws