Firstly need to Downlod JDK File.
- Open taeminal on the on the Jdk file. Now type Command on tarminal
chmod +x jdk-8u111-nb-8_2-linux-x64.sh
sudo ./jdk-8u111-nb-8_2-linux-x64.sh
chmod +x jdk-8u111-nb-8_2-linux-x64.sh
sudo ./jdk-8u111-nb-8_2-linux-x64.sh