Vandon n00b
Joined: 04 Jan 2004 Posts: 29
|
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-1.7.0.25 and dev-java/sun-jdk-1.6.0.45 installed.
My java-vm is jdk-1.6 and my java-nsplugin is 1.6
Code: | Available Java Virtual Machines:
[1] oracle-jdk-bin-1.7
[2] sun-jdk-1.6 system-vm
Available 32-bit Java browser plugins
Available 64-bit Java browser plugins
[1] oracle-jdk-bin-1.7
[2] sun-jdk-1.6 current |
In about:plugins, shows Java(TM) Plug-in 1.6.0_45
File: libnpjp2.so
Path: /opt/sun-jdk-1.6.0.45/jre/lib/amd64/libnpjp2.so
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.
Code: |
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-1.6.0.45/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-1.7.0.25/jre/bin/java -D__jvm_launched=96412169088 -Xbootclasspath/a:/opt/sun-jdk-1.6.0.45/jre/lib/deploy.jar:/opt/sun-jdk-1.6.0.45/jre/lib/javaws.jar:/opt/sun-jdk-1.6.0.45/jre/lib/plugin.jar -Djava.class.path=/opt/sun-jdk-1.6.0.45/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-1.7.0.25 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? |
|