ubuntu: define java_home linux


Open up your profile

vim /etc/profile

Add the following code to the profile

export JAVA_HOME
export PATH

To check if JAVA is set up correctly...



Take note that is very important to know what is the real path to your JAVA, and consider that you can have diferent versions and type of JAVA installed on your system, there is SUN JAVA (the original and propietary system) and there is a growing "flavor" of JAVA called OpenJDK

Leave a Reply

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