Friday, December 19, 2008

How to set JAVA_HOME path

In FreeBSD 7.2:
--------------------------------------------
#echo ‘setenv JAVA_HOME /usr/local/diablo-jdk1.6.0‘ >> /root/.cshrc
#reboot
#echo $JAVA_HOME (path should appear)


In Ubuntu 8.10 :
------------------------------------------
#echo ‘export JAVA_HOME=/usr/lib/jvm/java-6-sun‘ >> /etc/environment
#reboot
#echo $JAVA_HOME (path should appear)