Ya tenemos fedora 17 pero necesitamos usar Sun Java 7 por alguna razón. Hoy les muestro como instalarlo.
-Descargamos el JRE desde este link.
rpm -vi jre-7u4-linux-i586.rpm
-Activamos su uso para firefox y demas usos
alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 20000
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/lib/i386/libnpjp2.so 20000
-Verificamos versión
java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
-Verificamos en firefox este activo el plugin. Si ya estábamos ejecutándolo, debemos cerrarlo y abrirlo para que tome el cambio.
-Verificamos sea la opción por default
alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
*+ 2 /usr/java/latest/bin/java
Enter to keep the current selection[+], or type selection number: 2
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
*+ 2 /usr/java/latest/bin/java
Enter to keep the current selection[+], or type selection number: 2
-En firefox
alternatives --config libjavaplugin.so
There are 2 programs which provide 'libjavaplugin.so'.
Selection Command
-----------------------------------------------
1 /usr/lib/IcedTeaPlugin.so
*+ 2 /usr/java/latest/lib/i386/libnpjp2.so
Enter to keep the current selection[+], or type selection number: 2
-Agregamos variable de ambiente y salimos guardando
vi /etc/profile
export JAVA_HOME="/usr/java/latest"
Disfrútenlo
No hay comentarios:
Publicar un comentario
Dejame un comentario, aprecio la retroalimentacion. Leave me a comment, I appreciate the feedback.