Spread the love

Step : 1

Download :

http://download.oracle.com/otn/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin

Install Java , Self Extracting package (.bin)

Set the path of the Java

# chmod 777 jdk-6u45-linux-x64.bin

#./jdk-6u45-linux-x64.bin

Now , extracting

Step : 2

#  alternatives –install /usr/bin/java java  /usr/java/jdk1.6.0_45/bin/java 120

alternatives  –config java

# cd ~

# vi .bash_profile

Should be like this:

JAVA_HOME=/usr/java/jdk1.6.0_45/bin/java

PATH=$JAVA_HOME/jre/bin:$PATH

export PATH JAVA_HOME

Save and exit

Ctrl + c     – For exit press

:wq!   – write and quit

# which java

 

/usr/bin/java

# java -version

Install Java 1.6 on Oracle Linux

Leave a Reply

Your email address will not be published. Required fields are marked *