Ubuntu Cosmic Oracle JDK 8 - Set Path
-
Setting JAVA_HOME User Environment Variable (Optional).
su [myUserName]
Or simply:
exit
And Edit the Bash environment Configuration file
nano $HOME/.bashrc
Append:
export JAVA_HOME=/usr/lib/jvm/jdk1.8[uX]
Replace the [uX] Looking for the Installed Java 8 Version with:
ls /usr/lib/jvm/
Ctr+x to Save & Exit from nano Editor :)
Load New Bash Config:bash
Contents