Wednesday, August 11, 2010

Installing Sun Java Plugin for Firefox 3 on Fedora 13

There are quite a few sources on the net on how to install the sun java plugin on firefox 3. What happened to me was that I already installed Sun's JDK and JRE but it seems that the java plugin was not properly installed on my firefox 3.6.7, even if I look at Tools -> Add-Ons -> Plugins , the JAVA plugin is not visible there, so I had no idea on how I can enable it or something. The articles that I found on the net are only for firefox 3.5 and below.
So here's how to install Sun's Java Plugin for Firefox 3.6.x and above.

1. First, install Sun's JDK.
2. After installing the JDK successfully, try to locate the file , by using the locate command:
[rhythm@mybox ~]$ locate

Take note of the result of the command, in this case, it's /usr/java/jdk1.6.0_20/jre/lib/i386/
3. Become root by executing the following command.
4. Make a link to the file on the mozilla plugins folder using the following command, please replace the text "location of the file" with the result of the command executed on step 2.
ln -s "location of the file" /usr/lib/mozilla/plugins/

In my case, since the result of the command on step 2 is /usr/java/jdk1.6.0_20/jre/lib/i386/ , the command will be:

ln -s /usr/java/jdk1.6.0_20/jre/lib/i386/ /usr/lib/mozilla/plugins/

5. Restart Firefox.

There you have it, now, the java plugin should be available on the list of plugins when you access Tools -> Add-Ons -> Plugins. Enable it if it's still disabled, and you should be ready to go! Please comment if you encounter any problems with this. Thanks to wenlong for the info!