How to Install JDK 1.8 in ubuntu 14.04/16.04
Step 1:
Add below PPA repository into the source list
sudo add-apt-repository ppa:openjdk-r/ppa
Step 2:
Update the ubuntu source repository
sudo apt-get update
Step 3:
Install the Java run by below command
sudo apt-get install openjdk-8-jdk