Friday, 27 January 2012

How to install java Runtime environment in linux

Get the latest version of java from the following link
http://www.oracle.com/technetwork/java/javase/downloads/index.html

I  got a jdk-6u7-linux-i586.bin for linux

# mkdir -p /usr/java

# cd /usr/java

# chmod 700 /tmp/jdk-6u7-linux-i586.bin 

# /tmp/jdk-6u7-linux-i586.bin ---- tmp is the location where i download the package 

# export JAVA_HOME=/usr/java/jdk1.6.0_10 
# export PATH=$JAVA_HOME/bin:$PATH 
# which java
/usr/java/jdk1.6.0_10/bin/java
# java -version
 
    

No comments:

Post a Comment