Step-1
copy the jdk-1_5_0_14-linux-i586.bin to /usr/local/src directory ( you can copy anywhere and any java installaer )
# cd /usr/local/src
# chmod o+x jdk-1_5_0_14-linux-i586.bin
# ./jdk-1_5_0_14-linux-i586.bin
Accept Lic...................
This will create rmp package
Step-2
# rpm -ivh jdk-1_5_0_14-linux-i586.rpm
After rpm installation Locate jdk1.5.0_14 in my server /usr/java/jdk1.5.0_14
# cd /usr/java/jdk1.5.0_14
Step-3
# export JAVA_HOME=/usr/java/jdk1.5.0_14
# export PATH=/usr/java/jdk1.5.0_14/bin:$PATH
# export CLASSPATH=/usr/java/jdk1.5.0_14
for permanent changes set all the JAVA path in the /etc/profile
Step-4
# echo $JAVA_HOME ( verification ) and same for the other's..
No comments:
Post a Comment