KB: JAVA_HOME on Ubuntu

Set JAVA_HOME environment variable on Ubuntu Linux.

To globally set the JAVA_HOME environment variable, edit /etc/environment and add the following to the top of the file:

JAVA_HOME=/opt/jdk1.6.0
Please follow and like us:

Leave a Reply

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