In similiar context ,
I have installed sun-jre .
'java -version' says
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode
By default java is not recognised by firefox.
When I add link to /tmp/tcloop/sun-jre/usr/local/java-sun/jre/lib/i386/libnpjp2.so in ~/.mozilla/plugins folder then java in browser works.
I believe , here also I have to find a way to save ~/.mozilla/plugins folder.