Download the rpm file from Oracle website. Click here

Install JDK (java) rpm

rpm -Uvh jdk-8u121-linux-x64.rpm