install Oracle JRE openSUSE

Download the rpm installer jre-7u40-linux-x64.rpm from the oracle java site at http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html.

Run as root:

rpm -Uvh jre-7u40-linux-x64.rpm
update-alternatives –install "/usr/bin/java" "java" "/usr/java/jre1.7.0_40/bin/java" 1
update-alternatives –set java /usr/java/jre1.7.0_40/bin/java
update-alternatives –install "/usr/lib64/browser-plugins/javaplugin.so" "javaplugin" "/usr/java/jre1.7.0_40/lib/amd64/libnpjp2.so" 1
update-alternatives –set javaplugin /usr/java/jre1.7.0_40/lib/amd64/libnpjp2.so
 
Now check:

update-alternatives –list java
update-alternatives –list javaplugin
update-alternatives –config java
update-alternatives –config javaplugin

Credits