Java is properly installed in my Ubuntu 12.04 and the PATH variable is set in the .bashrc
file.
The command java -version
gives an expected out
Follow below step to define path variable available for all launcher for manually installed JDK
Step:
1-
cd /etc/
2-
sudo vim ~/.profile
3- Add below codes in your step2 open file
PATH="$HOME/bin:$HOME/.local/bin:/usr/lib:$PATH"
JAVA_HOME="/usr/lib/jvm/jdk1.7.0_79"
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
4-Restart your system