JDK installation on Ubuntu
There may have many ways to install Java on Ubuntu. However, in this example I’ll show the manual way which is download the JDK from the official website.
There are few steps here:
Extract it and move to
$ tar -zxvf jdk_<version>.tar.gz
Add Java to Environment Variable.
Activate the bash profile for immediate effect.
Re-open terminal (i.e.
CTRL + ALT + T for shortcut)
$ java -showversion
It should work. Have fun :)