Thursday, March 29, 2012

Installing Sun(oracle) Java bin file on Ubuntu

Here is the steps to install Oracle Java from bin file on ubuntu Server.
1. Download oracle jdk bin file.
2. Put downloaded file on your installation location for eg. /opt
3. Make the downloaded bin file executable
     sudo a+X jdk-6u31-linux-i586.bin
4. run the executable java bin file.
     sh ./jdk...bin
5.Update your installation
    sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.6.0_31/bin/java" 1
    sudo update-alternatives --set java /opt/jdk1.6.0_31/bin/java
6. Now check The current version of java
    java --verson

2 comments: