The Article shows you Simply How to SetUp the JAVA_HOME Environment Variable for JDK Installation Ubuntu Linux.
This is Meant to Make Clear also How to Exactly Recognize your Java Installation Home Directory.
Open Terminal Window
(Press “Enter” to Execute Commands)
Find the Java Home:
ls -l /etc/alternatives/java
Clear the “/bin/java” suffix from the Output and the Remaining will be the JAVA_HOME.
SetUp the Environment Parameters File:
sudo nano ~/.bashrc
Ctrl+Shift+v to Paste Content on nano
Ctrl+x to Save and Exit.
Howto Install Oracle Java JDK 7 on Ubuntu Linux 12