To install Java SE Runtime Environment (32-bit example):
$ sudo sh jre-6u12-linux-i586-rpm.bin
$ sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 (applies to both 32-bit and 64-bit users)
$ sudo /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \
libjavaplugin.so /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so 20000 (The Mozilla/Firefox browser plugin for 32-bit users) or $ sudo /usr/sbin/alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so \
libjavaplugin.so.x86_64 /usr/java/jre1.6.0_12/lib/amd64/libnpjp2.so 20000 (For 64-bit users)
Switch back to OpenJDK
$ sudo /usr/sbin/alternatives --config java
$ sudo /usr/sbin/alternatives --config libjavaplugin.so (or for 64-bit)
$ sudo /usr/sbin/alternatives --config libjavaplugin.so.x86_64
0 件のコメント:
コメントを投稿