Here's a quick 'n' easy version of another post that uses the rpm instead of the extracting to opt.

wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jre-6u25-linux-x64-rpm.bin
chmod +x jre-*
sudo ./jre-*
sudo alternatives --install /usr/bin/java java /usr/java/jre1.6.0_25/bin/java 20000
sudo alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_25/bin/javaws 20000
sudo alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_25/lib/amd64/libnpjp2.so 20000

Enjoy.

References

This reference list has been generated, in many cases, through an automated process and may therefore contain errors or incomplete metadata. It is provided purely as assistance for finding the items mentioned within this post.

  1. ‘Install Oracle Java 7u79/80 on Fedora 24/23, CentOS/RHEL 7.2/6.8/5.11’, If Not True Then False, 7 September 2010 <http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/>
  2. Oracle JRE 6u25 Linux x64 RPM download <http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jre-6u25-linux-x64-rpm.bin>