Joined: 04 Jan 2004
|Posted: Tue Jul 02, 2013 11:47 pm Post subject: Firefox java plugins running with other versions of java
|I've got a strange problem.
I have a need to keep java 1.6 installed to use the web interfaces on some old devices and storage at work that do not recognize or work with java 7, but I want to be able to switch to the Java7 nsplugin when I'm just surfing the web.
I've got dev-java/oracle-jdk-bin-220.127.116.11 and dev-java/sun-jdk-18.104.22.168 installed.
My java-vm is jdk-1.6 and my java-nsplugin is 1.6
|Available Java Virtual Machines:
 sun-jdk-1.6 system-vm
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
 sun-jdk-1.6 current
In about:plugins, shows Java(TM) Plug-in 1.6.0_45
However, when I run firefox and visit a site to see what java version I have, it shows Java Version 1.7.0_25 from Oracle.
In my process list, it appears that firefox is calling the right plugin but then it's running the java 1.6 plugin with java7.
jason 11047 18833 7 18:07 ? 00:02:22 /usr/bin/firefox
jason 11132 11047 0 18:07 ? 00:00:01 /usr/lib64/firefox/plugin-container /opt/sun-jdk-22.214.171.124/jre/lib/amd64/libnpjp2.so -greomni /usr/lib64/firefox/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appdir /usr/lib64/firefox/browser 11047 plugin
jason 11154 11132 0 18:07 ? 00:00:02 /opt/oracle-jdk-bin-126.96.36.199/jre/bin/java -D__jvm_launched=96412169088 -Xbootclasspath/a:/opt/sun-jdk-188.8.131.52/jre/lib/deploy.jar:/opt/sun-jdk-184.108.40.206/jre/lib/javaws.jar:/opt/sun-jdk-220.127.116.11/jre/lib/plugin.jar -Djava.class.path=/opt/sun-jdk-18.104.22.168/jre/classes -Dsun.awt.warmup=true sun.plugin2.main.client.PluginMain write_pipe_name=/tmp/.com.sun.deploy.net.socket.11132.373296441293925695.AF_UNIX
I have tried closing firefox and deleting pluginreg.dat and restarting, but firefox keeps running the java 1.6 plugin with java 1.7.
If I unmerge oracle-jdk-22.214.171.124 it works ok and websites report java plugin 1.6 again. I don't really want to have to unmerge/re-merge every time I switch. eselect java-vm and eselect java-nsplugin should "just work"
Does anyone have any ideas?