Somehow new firefox is dropping support for old-version of java.

test your java VM here .

so i just downloaded the bin file from java website .
“jre-6u21-linux-i586.bin”

and put it under this folder : $RPM_BUILD_ROOT/SOURCES

install the necessary tools ..

yum install jpackage-utils -y

with .rpmmacros as below :

%_topdir        %(echo ${HOME}/rpm)
%_tmppath       %{_topdir}/tmp
 
%packager       Namran Hussin <[email protected]>
%distribution Namran Net
%vendor Namran Dot Net

then i just copied over the old version SPEC file (from the past version source rpm )
and put it under $RPM_BUILD_ROOT/SPEC
with minor modification on the SPEC file for file and some other thing that was missing from the new bin.
download the one that was modified by me from here.
then I just run ..

rpmbuild -ba SPEC/java-1.6.0-21-sun.spec

wait till it completed ..
and collect the result at $RPM_BUILD_ROOT/RPMS

after that to installl ..

cd $RPM_BUILD_ROOT/RPMS/i586
yum --nogpgcheck localinstall java-1.6.0-sun-alsa-1.6.0.21-1jpp.i586.rpm  java-1.6.0-sun-plugin-1.6.0.21-1jpp.i586.rpm -y

after that .. i just created the simlink into /usr/lib/mozilla/plugins/

cd /usr/lib/mozilla/plugins/
ln -s /usr/lib/jvm/java-1.6.0-sun-1.6.0.21/jre/plugin/i386/ns7/libjavaplugin_oji.so .

but somehow the firefox 3.6.6 doesn’t even recognized it..

so I opted to this..
added following line into “/etc/yum.conf” to exclude further update of firefox.

exclude=opera,openoffice*,firefox

download the binary of firefox 3.5 from http://mozilla.snt.utwente.nl//firefox/releases/3.5.10/linux-i686/en-US/firefox-3.5.10.tar.bz2

cd /tmp/
wget http://mozilla.snt.utwente.nl//firefox/releases/3.5.10/linux-i686/en-US/firefox-3.5.10.tar.bz2 
cd /usr/local/
tar xjfv /tmp/firefox-3.5.10.tar.bz2 
rm -rf /usr/bin/firefox
ln -s /usr/local/firefox/firefox /usr/bin/firefox

then.. that’s it..
point the URL to this ..

about:plugins

shall spit that new java had been recognized..

then test again.. using java.com website..
resulting the following screenshot.