Re: Multiple java applet with firefox
Narendra Sisodiya wrote:
Ok, good news,
Some how I am able to use 2 jre with firefox in linux.
I installed jdk1.5 in /usr/java1.5
and jdk1.6 in /usr/java directories.
Now I went to firefox plugins directory. I made soft links.
#ls -l
14 19:31 libjavaplugin_oji16.so -> /usr/java/jre/plugin/i386/ns7/
libjavaplugin_oji.so
53 Jul 14 19:31 libjavaplugin_oji.so -> /usr/java1.5/jre/plugin/i386/
ns7/libjavaplugin_oji.so
First I made soft link for java1.5 plugins and open the browser and
checked it and then I made for java1.6. I modified make of file while
making soft link. (plz note reverse order will not work ?)
when I opened the link - about:plugions
It shows both java plugins
==========================================================================
Java(TM) Plug-in 1.6.0_13-b03
File name: /home/nsisodiya/software/jdk1.6.0_07/jre/plugin/i386/
ns7/libjavaplugin_oji.so
This is different from what you said above.
Java(TM) Plug-in 1.6.0_13
MIME Type Description Suffixes Enabled
application/x-java-vm Java Yes
application/x-java-applet Java Yes
application/x-java-applet;version=1.1 Java Yes
application/x-java-applet;version=1.1.1 Java Yes
......
.....
application/x-java-bean;version=1.5 Java Yes
application/x-java-bean;version=1.6 Java Yes
application/x-java-bean;jpi-version=1.6.0_13 Java Yes
Java(TM) Plug-in 1.5.0_11-b03
File name: /home/nsisodiya/software/jdk1.5.0_11/jre/plugin/i386/
ns7/libjavaplugin_oji.so
Again, this is not the file you linked to in your Mozilla plugins directory.
What's going on?
Java(TM) Plug-in 1.5.0_11
MIME Type Description Suffixes Enabled
application/x-java-vm Java Yes
application/x-java-applet Java Yes
application/x-java-applet;version=1.1 Java Yes
....
....
application/x-java-bean;version=1.4.1 Java Yes
application/x-java-bean;version=1.4.2 Java Yes
application/x-java-bean;version=1.5 Java Yes
application/x-java-bean;jpi-version=1.5.0_11 Java Yes
==========================================================================
java1.6 give support of application/x-java-bean;version=1.5 mimetype
which is not matched by code. because code needs application/x-java-
bean;jpi-version=1.5.0_11 and this is now provided by java1.5 plugins.
Now I can load my old appled with jre 1.5 and new applet with 1.6 but
I have few question now
Q1 - Which jre will load when applet code require application/x-java-
bean;version=1.4.1
If you open the Firefox Preferences dialog, in the Applications tab you can see
which application/plugin is used for each MIME type. Scroll down the list until
you find the specific Java version you are interested in and the relevant
plugin will be shown.
Q2 - about:plugins page show 4 columns. the last column is enabled.
How can i enable and disable a perticular row from list.
I don't think so. But if what you are wanting to do is configure which plugin is
used for a particular version of Java then you can do it from the Applications
dialog. Click in the Actions column and select Use other... and point it to the
plugin. I've never actually tried this...
Q3 - I have done with Linux system. I have very small knowledge of
Window. How can i do the same thing in window box. npjp2.dll found in
jdk1.6 and not in 1.5. can we do similar thing on window box?
No idea. But the Java 1.5 plugins are named differently. There are dlls for each
version, I think, called NPJava11, NPJava12 etc. and NPJPI_150 for the latest
version. You may be able to point Firefox to each of these via the Applications
dialog.
--
Nigel Wade