How to Install Orcle Java 8 JRE on RHEL ec2 Linux

Follow the steps given below for setting up oracle JRE 8 on a RHEL Linux instance.

  1. Head over to oracle java JRE downloads page

  2. Accept the Download the appropriate rpm package. The download URL would look something like below.

  3. Rename the downloaded package to rpm. You need to replace the source URL with your

     mv jre-8u131-linux-x64.rpm\?AuthParam\=1493719102_0ac0ea12663165a76e17a5ebc11ea248  jre-8.rpm
  4. Install the package

     sudo rpm -ivh jre-8.rpm