- Log in to post comments
Download java:
http://java.com/en/download/linux_manual.jsp?locale=en
Install with rpm:
rpm -Uvh jre-7u67-linux-x64.rpm
Set alternatives:
update-alternatives --install "/usr/bin/java" "java" "/usr/java/latest/bin/java" 1 \
--slave "/usr/bin/keytool" "keytool" "/usr/java/latest/jre/bin/keytool" \
--slave "/usr/bin/unpack200" "unpack200" "/usr/java/latest/bin/unpack200" \
--slave "/usr/bin/pack200" "pack200" "/usr/java/latest/bin/pack200" \
--slave "/usr/bin/rmid" "rmid" "/usr/java/latest/bin/rmid" \
--slave "/usr/bin/rmiregistry" "rmiregistry" "/usr/java/latest/jre/rmiregistry" \
--slave "/usr/bin/tnameserv" "tnameserv" "/usr/java/latest/bin/tnameserv"
Choose Java:
update-alternatives --set java /usr/java/latest/bin/java
Check the result:
update-alternatives --display java
java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
Install Firefox plugin
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 1