Install Java Plugin

30 May 2007 NOTE: The following instructions have been switched back to Java 1.5 as version 1.6 has been troublesome. Users who wish to use 1.6 can read Fedora 7 – Java.
NOTE: These instructions are for using Sun Java for the web browser and using Java dependant applications. This is not meant for developers. The official recommendation from Fedora can be found on However the following instructions are simple for non-developers or users who don’t use yum.
NOTE: Fedora Core advises AGAINST using the Sun Java RPMyum–>. If you do not use yum or do not have any Fedora/GNU java installed this will not affect you. If you are using yum and installed the RPM it is recommended to remove it:

[mirandam@charon ~]$ rpm -q jre
[mirandam@charon ~]$ sudo rpm -e jre
Download the Java package from:
Select: Java Runtime Environment (JRE) 5.0 Update 12
On the next page, accept the license agreement, and make sure to select:
Linux self-extracting file   jre-1_5_0_12-linux-i586.bin   16.34 MB
To install:
[mirandam@charon downloads]$ sh jre-1_5_0_12-linux-i586.bin
(type 'yes')

[mirandam@charon downloads]$ sudo mv -f jre1.5* /opt/jre1.5
[mirandam@charon downloads]$ sudo ln -s /opt/jre1.5/plugin/i386/ns7/ /usr/lib/mozilla/plugins/
To update: If you update the JRE package, simply delete the /opt/jre1.5 directory and copy the newer download to /opt/jre1.5 — No need to run the ‘ln -s’ command.

Controlling Java through ‘alternatives’. When running the java command, Fedora will automatically pick the GNU Java, to use Sun’s java do the following:
[mirandam@charon ~]$ sudo /usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5/bin/java 2
[mirandam@charon ~]$ echo 2 | sudo /usr/sbin/alternatives --config java

[mirandam@charon ~]$ java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
Top Resources

0 Response to "Install Java Plugin"

Posting Komentar