How to install Oracle’s latest JRE on a RedHat 64 bit flavor distro

# Navigate to java.com and download rpm package for 64 bit platform (i.e. 7u60)

$ sudo rpm -ivh jre-7u*.rpm

$ sudo alternatives –install /usr/bin/java java /usr/java/latest/bin/java 760 \
–slave /usr/bin/ControlPanel ControlPanel /usr/java/latest/bin/ControlPanel \
–slave /usr/bin/javaws javaws /usr/java/latest/bin/javaws \
–slave /usr/bin/keytool keytool /usr/java/latest/bin/keytool \
–slave /usr/bin/policytool policytool /usr/java/latest/bin/policytool \
–slave /usr/bin/rmid rmid /usr/java/latest/bin/rmid \
–slave /usr/bin/rmiregistry rmiregistry /usr/java/latest/bin/rmiregistry \
–slave /usr/bin/tnameserv tnameserv /usr/java/latest/bin/tnameserv

$ sudo alternatives –install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 760

# Switch from auto to manual by selecting your newly added JRE as preferred

$ sudo alternatives –config java
$ sudo alternatives –config libjavaplugin.so.x86_64

# verify…
$ java -version
Browser < about:plugins
http://www.java.com/en/download/installed.jsp?detect=jre

Advertisements