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 libnpjp2.so , by using the locate command:
[rhythm@mybox ~]$ locate libnpjp2.so
/usr/java/jdk1.6.0_20/jre/lib/i386/libnpjp2.so

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

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

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

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!

5 comments:

  1. dont work for me!!
    Firefox 3.6.7
    fedora core 13

    ReplyDelete
  2. Works for me, thanks! :-)

    But if your main goal is just to get Java for Firefox, all you need is the JRE (20MB). There is no need to download the complete Java Development Kit which is 80MB.

    The installation procedure is the same...

    ReplyDelete
  3. @ Ruthm cloud: Kindly i have redhat 6.0 for 64 bit machine and a toshiba satellite pro. I followed all ur instruction from a-z and everything seemed to be working because i didnt get a single error but when i restarted my pc, i still don't have internet and i typed system-config-network-tui but there's no device loaded there. I've been doing this for the past 2 months with no success

    ReplyDelete
  4. @ Ruthm cloud: Kindly i have redhat 6.0 for 64 bit machine and a toshiba satellite pro. I followed all ur instruction from a-z and everything seemed to be working because i didnt get a single error but when i restarted my pc, i still don't have internet and i typed system-config-network-tui but there's no device loaded there. I've been doing this for the past 2 months with no success

    ReplyDelete