java-logoPolêmicas a parte, as  vezes precisamos usar o lado Negro da Força. Então a seguir os comandos/receita de bolo de como instalar o JDK da oracle no openSUSE.

Primeiramente efetue os downloads do pacote jdk e jre AQUI.

A seguir execute o comando rpm:

# rpm -ivh jre-7u45-linux-x64.rpm
Preparando...                         ################################# [100%]
Updating / installing...
   1:jre-1.7.0_45-fcs                 ################################# [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        localedata.jar...
        jfxrt.jar...
# rpm -ivh jdk-7u45-linux-x64.rpm
Preparando...                         ################################# [100%]
Updating / installing...
   1:jdk-2000:1.7.0_45-fcs            ################################# [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        tools.jar...
        localedata.jar...
        jfxrt.jar...

Para finalizer execute os comandos:

update-alternatives --install "/usr/lib64/browser-plugins/javaplugin.so" "javaplugin" "/usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so" 1
update-alternatives --set javaplugin /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so
update-alternatives --install "/usr/bin/java" "java" "/usr/java/jre1.7.0_45/bin/java" 1
update-alternatives --set java /usr/java/jre1.7.0_45/bin/java

E Pronto…