Powered By Blogger

Monday, 30 April 2012

Install the Oracle JDK 6 in Linux

 
Due to license issues Ubuntu will no longer distribute Oracle's JDK and JRE.
There are no more supported java releases from Ubuntu - Ubuntu officially supports OpenJDK and OpenJRE implementation of Java which is the base for Oracle's own implementation.


The instructions below provide a guide to install the official Oracle JDK 6. You will need to regularly update this manually to ensure your installation maintains recommended security and stability fixes.

1, Download the 32bit or 64bit Linux "compressed binary file" - it has a ".bin" file extension

2,Give it permissions to execute
      
      chmod 777 [version]-linux-i586.bin

3, Extract it.
      
       ./[version]-linux-i586.bin

4, JDK 6 package is extracted into ./jdk1.6.0_x directory, for example ./jdk1.6.0_30.

5,   Just rename it to jdk and move to /usr/lib/jvm
      
     mv jdk1.6.0_30 jdk  
     sudo mkdir /usr/lib/jvm
     sudo mv jdk /usr/lib/jvm

6, Update system paths in /etc/environment
                    
     JAVA_HOME=/usr/lib/jvm/jdk
     PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
     export JAVA_HOME
     export JAVA_BIN
     export PATH

...................................................................................................................................Vijay.
  

No comments:

Post a Comment