Follow the steps given below for setting up oracle JRE 8 on a RHEL Linux instance.
-
Head over to oracle java JRE downloads page http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
-
Accept the Download the appropriate rpm package. The download URL would look something like below.
wget http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jre-8u131-linux-x64.rpm?AuthParam=1493719102_0ac0ea12663165a76e17a5ebc11ea248`
-
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
-
Install the package
sudo rpm -ivh jre-8.rpm