Installing Java in Linux 64bit Firefox

The following steps can be used to install the Java plugin on Linux based 64-bit Firefox.
 
First, download the latest java 6.024 installer from java.com and install it in /usr/java

#!/bin/csh
mkdir /usr/lib64/firefox-3.6/plugins
cd /usr/lib64/firefox-3.6/plugins
ln -s /usr/java/latest/lib/amd64/libnpjp2.so
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.6.0_24/jre/lib/amd64/libnpjp2.so 20000
alternatives --install /usr/bin/java java /usr/java/jre1.6.0_24/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_24/bin/javaws 20000
System-Admin