Re: Centos 5.3, Firefox, and JRE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxx 
> <mailto:kaufmann@xxxxxxx> | Interested in High Performance Computing? 
> Visit us at http://rocks64.slu.edu/atg .
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> 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 
here.

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/java:
/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
ili
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
ili
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
ili
ln -s /usr/java/latest/lib/i386/libnpjp2.so
5. Restart Firefox and type the following in URL field and press Enter:
about:plugins

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 
/usr/lib/mozilla/plugins


Ljubomir
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux