shirazbj
February 17th, 2010, 01:19 PM
Hi
I installed the jdk-6u18-linux-i586.bin file and have added bellow in the /etc/profile:
JAVA_HOME=/opt/jdk1.6.0_18
export JRE_HOME=/opt/jdk1.6.0_18/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
After reboot, when type "java -version" in a terminal, it still says java not installed.
Why?
I tried on Ubuntu 8.1 & 9.04
Thanks
Cean
I installed the jdk-6u18-linux-i586.bin file and have added bellow in the /etc/profile:
JAVA_HOME=/opt/jdk1.6.0_18
export JRE_HOME=/opt/jdk1.6.0_18/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
After reboot, when type "java -version" in a terminal, it still says java not installed.
Why?
I tried on Ubuntu 8.1 & 9.04
Thanks
Cean