I read many articles about installing sunjava6 using files like that jdk-6u14-linux-i586.bin. Since rpm ora is an rpm-based release, and sun provides a jdk-6u14-linux-i586-rpm.bin, how can we use the original method? It must be installed with the root user. Shjdk-6u14-linux-i586-rpm.binupdate-alternatives-inst
I have read many articles about installing sun java6 using files like the jdk-6u14-linux-i586.bin.
Since rpm ora is an rpm-based release, and sun provides a jdk-6u14-linux-i586-rpm.bin, how can we use the original method?
It must be installed with the root user.
Sh jdk-6u14-linux-i586-rpm.bin
Update-alternatives -- install "/usr/bin/java" "java" "/usr/java/latest/bin/java" 1
Update-alternatives -- install "/usr/bin/javac" "javac" "/usr/java/latest/bin/javac" 1
Update-alternative -- config java
Update-alternative -- config javac
(I cannot use other java commands, so I didn't handle them. If there is a conflict with other Java virtual machines, add)
The installation is complete. However, there is no browser plug-in.
Ln-s/usr/java/latest/jre/plugin/i386/ns7/libjavaplugin_oji.so/usr/lib/mozilla/plugins/
In this way, it is complete--|
This article comes from:Http://bbs.fedora-zh.org/showthread.php? T = 1604