[CentOS] Centos 5.3, Firefox, and JRE

Tue Apr 19 20:50:59 UTC 2011
Ljubomir Ljubojevic <office at plnet.rs>

Eric Kaufmann wrote:
> I can't get java applets to run in Firefox.
> We are using centos 5.3, firefox 3.0.11. Java version 1.6.0_24 is installed.
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
> I know there has been allot written about this issue. I did look and 
> there is no jre plug in installed for Firefox.
> I tried to reinstall java and this did not work either.
> Any ideas?
> Eric
> -- 
> Eric Kaufmann |  Application Support Analyst -  Advanced Technology 
> Group | Saint Louis University | 314-977-2257 | kaufmann at slu.edu 
> <mailto:kaufmann at slu.edu> | Interested in High Performance Computing? 
> Visit us at http://rocks64.slu.edu/atg .
> ------------------------------------------------------------------------
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

This is my Tomboy note about adding java support to CentOS Firefox:

1. yum install java

2. Now you need to add the Java you have installed to the list of 
alternatives for the java executable:
/usr/sbin/alternatives --install /usr/bin/java java 
/usr/java/latest/bin/java 2

Note: There is two - (hypen) before install. However wordpress may 
replace both of them with a separate character, so just don't copy-paste 

Note: Tinker with /usr/java/latest/bin/java if you do not have Java 
installed at this location. In other words change it to point to the 
location of your installed Java executable from Sun.

3. Now configure alternatives to select the latest Java executable under 
/usr/sbin/alternatives --config java

Check the version of Java to ensure that it is from Sun:
java -version

For example, this is the output I get:

java version "1.6.0_16″
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

Go to /usr/lib64/mozilla/plugins:
cd /usr/lib64/mozilla/plugins
cd /usr/lib/mozilla/plugins

4. Create a symbolic link to libnpjp2.so (Firefox plugin for Java):
ln -s /usr/java/latest/lib/amd64/libnpjp2.so
ln -s /usr/java/latest/lib/i386/libnpjp2.so

Note: The above is applicable for JDK installation. For JRE it is likely 
to be:
ln -s /usr/java/latest/lib/amd64/libnpjp2.so
ln -s /usr/java/latest/lib/i386/libnpjp2.so
5. Restart Firefox and type the following in URL field and press Enter:

You should now see a section titled Java(TM) Plug-in 1.6.x

You are done installing Java Plugin / Applet support in Firefox on CentOS 5.

ln -s /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so  u