Multiple java applet with firefox

N

Narendra Sisodiya

I am using Linux + Firefox. There is one application which has two
applet. One applet needs 1.5 javapplet plugins and other needs 1.6
version of java applet. is possible to have both applet version on
system?
In plugin directory of firefox, I have both so files
libjavaplugin_oji_1_5.so -> /usr/java1.5/jre/plugin/i386/ns7/
libjavaplugin_oji.so
libjavaplugin_oji.so -> /home/nsisodiya/software/jdk1.6.0_07/jre/
plugin/i386/ns7/libjavaplugin_oji.so

When i went to java tester, It shows you have java 1.5 installed on
system. is there any method in firefox by which i can select mannually
or programmacally.

Thanks and Regards
 
R

Roedy Green

I am using Linux + Firefox. There is one application which has two
applet. One applet needs 1.5 javapplet plugins and other needs 1.6
version of java applet. is possible to have both applet version on
system?

The requirement would be for JRE 1.5+. So just install 1.6 and both
should work. I don't think I have ever run into an Applet than would
run on version n that did not also work on version n+1.
--
Roedy Green Canadian Mind Products
http://mindprod.com

"For reason that have a lot to do with US Government bureaucracy, we settled on the one issue everyone could agree on, which was weapons of mass destruction."
~ Paul Wolfowitz 2003-06, explaining how the Bush administration sold the Iraq war to a gullible public.
 
N

Narendra Sisodiya

The requirement would be for JRE 1.5+. So just install 1.6 and both
should work. I don't think I have ever run into an Applet than would
run on version n that did not also work on version n+1.
--
Roedy Green Canadian Mind Productshttp://mindprod.com

"For reason that have a lot to do with US Government bureaucracy, we settled on the one issue everyone could agree on, which was weapons of mass destruction."
~ Paul Wolfowitz 2003-06, explaining how the Bush administration sold the Iraq war to a gullible public.

When I install 1.6, my firefox says "install missing plugins", 1.6 is
not going to have backword compatible with respect to that
application. I cannot change the code of application !!
 
A

Andrew Thompson

...
When I install 1.6, my firefox says "install missing plugins",...

What 'missing plug-ins', exactly? Why does your FF not
report the same for 1.5?
 
N

Narendra Sisodiya

What 'missing plug-ins', exactly? Why does your FF not
report the same for 1.5?

it says, missing plugins --
after clicking , it says
unknow plugin ( application/x-java-applet;jpi-version=1.5.0_11 )
I have jre 1.6 on my browser. How can i have both version !!
 
A

Andrew Thompson

....
it says, missing plugins --
after clicking , it says
unknow plugin ( application/x-java-applet;jpi-version=1.5.0_11 )
I have jre 1.6 on my browser. How can i have both version !!

Oh, I thought you meant that 1.5 had installed
extensions that were missing in 1.6.

In any case, as Roedy has pointed out, a Java 1.5
applet should work in Java 1.6, barring any number
of hackish coding techniques that should be avoided
anyway.

If it really comes down to specifying '1.5 only',
you might have to factor that applet out of the
page, and instead install it using Java Web Start(1).

Is this your web page, and your applets that you
are referring to? Is there a public URL where we
can see the applet page?

(1) JWS versioning..
<http://pscode.org/jws/version.html#earlier>
 
N

Narendra Sisodiya

Oh, I thought you meant that 1.5 had installed
extensions that were missing in 1.6.

In any case, as Roedy has pointed out, a Java 1.5
applet should work in Java 1.6, barring any number
of hackish coding techniques that should be avoided
anyway.

If it really comes down to specifying '1.5 only',
you might have to factor that applet out of the
page, and instead install it using Java Web Start(1).

Is this your web page, and your applets that you
are referring to? Is there a public URL where we
can see the applet page?

(1) JWS versioning..
<http://pscode.org/jws/version.html#earlier>
Its a internal old server. which has web frondend. I cannot change the
code of server. it use strict java applet version. With Firefox 2+ jre
1.6 , It asked for missing plugins. With firefox 2 + jre 1.5 , that
page works well. But I cannot have the jre 1.5 as another applet
present on page which require 1.6. Now I tested with Opera. I
installed jre 1.6 on opera. the same page(which need jre 1.5) do not
ask for missing plugins and It works well. So problem is not with
backword compatibility.
The problem is with association !! If some how i can tell firefox that
"please use jre 1.6, even code require 1.5, and please do not ask for
missing plugins for jre 1.5".

Here is the dynamic code --

<object width="928" height="188" align="bottom" mayscript="true"
name="maplet" codebase="http://java.sun.com/update/1.5.0/
jinstall-1_5_0_11-windows-i586.cab#version=1,5,0,11"
classid="clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA">
<param value="928" name="width"/>
<param value="/webtop/classes/ael.jar,/webtop/classes/maplet.jar,/
webtop/classes/nova.jar,/webtop/classes/jctableK.jar,/webtop/classes/
oromatcher.jar,/webtop/classes/jaxen-core.jar,/webtop/classes/
saxpath.jar" name="archive"/>
<param value="/webtop/classes/" name="codebase"/>
<param value="application/x-java-applet;jpi-version=1.5.0_11"
name="type"/>
<param value="/webtop/classes/" name="java_codebase"/>
<param value="Java enabled browser required to view this applet."
name="plugin.message"/>
<param value="clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA"
name="classid"/>
<param value="com.micromuse.wave.applets.maplet.Maplet" name="code"/>
<param value="" name="Locale-variant"/>
<param value="http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-
windows-i586.cab#version=1,5,0,11" name="object.codebase"/>
<param value="http://java.sun.com/products/plugin/index.jsp"
name="plugin.url"/>
<param value="AlarmOverview" name="mappage"/>
<param value="188" name="height"/>
<param value="baseline" name="align"/>
<param value="/webtop" name="context"/>
<param value="GB" name="Locale-country"/>
<param value="true" name="mayscript"/>
<param value="false" name="plugin.classic"/>
<param value="maplet" name="name"/>
<param value="en" name="Locale-language"/>
<param value="10" name="refresh"/>
<embed width="928" height="188" align="bottom" refresh="10" locale-
language="en" name="maplet" plugin.classic="false" mayscript="true"
locale-country="GB" context="/webtop" mappage="AlarmOverview"
plugin.url="http://java.sun.com/products/plugin/index.jsp"
object.codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-
windows-i586.cab#version=1,5,0,11" locale-variant=""
code="com.micromuse.wave.applets.maplet.Maplet" plugin.message="Java
enabled browser required to view this applet." java_codebase="/webtop/
classes/" type="application/x-java-applet;jpi-version=1.5.0_11"
codebase="/webtop/classes/" archive="/webtop/classes/ael.jar,/webtop/
classes/maplet.jar,/webtop/classes/nova.jar,/webtop/classes/
jctableK.jar,/webtop/classes/oromatcher.jar,/webtop/classes/jaxen-
core.jar,/webtop/classes/saxpath.jar"/>
<noembed>
</comment>
<center>
<table cellpadding="5" cellspacing="5">
<tr><td align="center" bgcolor="#ffffff">Java enabled browser required
to view this applet.</td></tr>
<tr><td align="center" bgcolor="#ffffff">
<a href="http://java.sun.com/products/plugin/index.jsp"
target="_blank" class="body">Download Plug-in</a>
</td></tr>
</table>
</center>
</noembed>

</object>
 
N

Narendra Sisodiya

Its a internal old server. which has web frondend. I cannot change the
code of server. it use strict java applet version. With Firefox 2+ jre
1.6 , It asked for missing plugins. With firefox 2 + jre 1.5 , that
page works well. But I cannot have the jre 1.5 as another applet
present on page which require 1.6. Now I tested with Opera. I
installed jre 1.6 on opera. the same page(which need jre 1.5) do not
ask for missing plugins and It works well. So problem is not with
backword compatibility.
The problem is with association !! If some how i can tell firefox that
"please use jre 1.6, even code require 1.5, and please do not ask for
missing plugins for jre 1.5".

Here is the dynamic code --

<object width="928" height="188" align="bottom" mayscript="true"
name="maplet" codebase="http://java.sun.com/update/1.5.0/
jinstall-1_5_0_11-windows-i586.cab#version=1,5,0,11"
classid="clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA">
<param value="928" name="width"/>
<param value="/webtop/classes/ael.jar,/webtop/classes/maplet.jar,/
webtop/classes/nova.jar,/webtop/classes/jctableK.jar,/webtop/classes/
oromatcher.jar,/webtop/classes/jaxen-core.jar,/webtop/classes/
saxpath.jar" name="archive"/>
<param value="/webtop/classes/" name="codebase"/>
<param value="application/x-java-applet;jpi-version=1.5.0_11"
name="type"/>
<param value="/webtop/classes/" name="java_codebase"/>
<param value="Java enabled browser required to view this applet."
name="plugin.message"/>
<param value="clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA"
name="classid"/>
<param value="com.micromuse.wave.applets.maplet.Maplet" name="code"/>
<param value="" name="Locale-variant"/>
<param value="http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-
windows-i586.cab#version=1,5,0,11" name="object.codebase"/>
<param value="http://java.sun.com/products/plugin/index.jsp"
name="plugin.url"/>
<param value="AlarmOverview" name="mappage"/>
<param value="188" name="height"/>
<param value="baseline" name="align"/>
<param value="/webtop" name="context"/>
<param value="GB" name="Locale-country"/>
<param value="true" name="mayscript"/>
<param value="false" name="plugin.classic"/>
<param value="maplet" name="name"/>
<param value="en" name="Locale-language"/>
<param value="10" name="refresh"/>
<embed width="928" height="188" align="bottom" refresh="10" locale-
language="en" name="maplet" plugin.classic="false" mayscript="true"
locale-country="GB" context="/webtop" mappage="AlarmOverview"
plugin.url="http://java.sun.com/products/plugin/index.jsp"
object.codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-
windows-i586.cab#version=1,5,0,11" locale-variant=""
code="com.micromuse.wave.applets.maplet.Maplet" plugin.message="Java
enabled browser required to view this applet." java_codebase="/webtop/
classes/" type="application/x-java-applet;jpi-version=1.5.0_11"
codebase="/webtop/classes/" archive="/webtop/classes/ael.jar,/webtop/
classes/maplet.jar,/webtop/classes/nova.jar,/webtop/classes/
jctableK.jar,/webtop/classes/oromatcher.jar,/webtop/classes/jaxen-
core.jar,/webtop/classes/saxpath.jar"/>
<noembed>
</comment>
<center>
<table cellpadding="5" cellspacing="5">
<tr><td align="center" bgcolor="#ffffff">Java enabled browser required
to view this applet.</td></tr>
<tr><td align="center" bgcolor="#ffffff">
<a href="http://java.sun.com/products/plugin/index.jsp"
target="_blank" class="body">Download Plug-in</a>
</td></tr>
</table>
</center>
</noembed>

</object>

Please note that, I cannot change any of this code, because i am
sitting at cliet end. I just copied code from firebug !!
 
A

Andrew Thompson

On Jul 14, 11:01 pm, Narendra Sisodiya <[email protected]>
wrote:
....
Please note that, ..

Please note that it is not necessary to quote the
/entire/ post when replying. Please trim replies.
..I cannot change any of this code, ..

Perhaps not, but the problem really lies with the
server.

Having said that, it is /possible/ to create a
'local' page that embeds applets from 'foreign'
sites. It should work so long as the applets do
not try to fetch resources relative to the
document base (but fetching resources relative
to the code base, or class path, would work
just fine).

Another caveat, given the interaction with JS
implied by the MAYSCRIPT declaration, is that
the JS does not do anything relying on being
served from the original site (e.g. cookies,
relative references to resources..).

*But really, you should get the people who control
the page, to fix it.* There are better ways to
deploy applets with a minimum JRE now, using the
deployJava.js by Sun.
 
N

Narendra Sisodiya

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
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
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
Q2 - about:plugins page show 4 columns. the last column is enabled.
How can i enable and disable a perticular row from list.
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?
 
J

Joshua Cranmer

Narendra said:
<object width="928" height="188" align="bottom" mayscript="true"
name="maplet" codebase="http://java.sun.com/update/1.5.0/
jinstall-1_5_0_11-windows-i586.cab#version=1,5,0,11"
classid="clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA"> [...]
<param value="application/x-java-applet;jpi-version=1.5.0_11"
name="type"/> [...]
<embed [...]
object.codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-
windows-i586.cab#version=1,5,0,11"

Unless I am mistaken in my interpretation of <embed> and <object>
handling, this would seem to suggest that the web page author doesn't
want to use anything other than version 1.5.0_11.

Needless to say, although you continually comment that you can't change
the website code, it seems to me that the code is broken and that you
ought to change it.
 
R

Richard Maher

Hi Joshua,

Joshua Cranmer said:
Narendra said:
<object width="928" height="188" align="bottom" mayscript="true"
name="maplet" codebase="http://java.sun.com/update/1.5.0/
jinstall-1_5_0_11-windows-i586.cab#version=1,5,0,11"
classid="clsid:CAFEEFAC-0015-0000-0011-ABCDEFFEDCBA"> [...]
<param value="application/x-java-applet;jpi-version=1.5.0_11"
name="type"/> [...]
<embed [...]
object.codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_11-
windows-i586.cab#version=1,5,0,11"

Unless I am mistaken in my interpretation of <embed> and <object>
handling, this would seem to suggest that the web page author doesn't
want to use anything other than version 1.5.0_11.

I've just read this thread a couple of times and unfortunately have another
question to add rather than an answer.

I thought Narendras original requirement was: -
[[[[[[[[[[[[
I am using Linux + Firefox. There is one application which has two
applet. One applet needs 1.5 javapplet plugins and other needs 1.6
version of java applet. is possible to have both applet version on
system?
]]]]]]]]]]

Isn't that the exact functionality that one of the *big* new features of
Java 6 was meant to provide? Multiple JVMs so that Applets with different
Java version dependencies can co-exist happily on the same page?
Needless to say, although you continually comment that you can't change
the website code, it seems to me that the code is broken and that you
ought to change it.

Regards Richard Maher
 
N

Nigel Wade

Narendra said:
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.
 
N

Narendra Sisodiya

This is different from what you said above.







Again, this is not the file you linked to in your Mozilla plugins directory.
What's going on?
Thanks for reading mail carefully.
Actually,
/usr/java1.5 is a soft link for /home/nsisodiya/software/jdk1.5.0_11/
and /usr/java is a soft link for /home/nsisodiya/software/jdk1.6.0_07/
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.
Nope, That is just a association of Filetype vs Application.
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...
Actually, I did this with unoffical way.
in home directory , there is a file called pluginreg.dat (~/.mozilla/
firefox/pluginreg.dat in my case)
All i need to edit this file to add or delete a perticular entry.

Actually my jre 1.6 show this --
.......
......
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
......
.....
Their is a difference between version and jpi-version. When a applet
specify type="application/x-java-bean;version=1.5", it means it can
work with jre 1.6 installed.
in in my case the webpage was having type="application/x-java-bean;jpi-
version=1.5.0_11", which means the exact version requirement.

The workaround to this problem is that just have jre 1.6 on system and
edit pluginreg.dat file to make one more entry on pulginreg.dat file.

when i added jpi line to file (+ some more addition)
.......
......
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
application/x-java-bean;jpi-version=1.5.0_11 Java Yes
......
.....
it works. full details are at - ( just read last comment -
http://ubuntuforums.org/archive/index.php/t-555369.html )

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.

Thanks, problem solved with only one having jre with adding mimetype
for site which need specific jre using jpi-version.

sidenote :: If i put 2 jre on same fireox plugin dir, as described
earlier in mail. applet which need java1.5 will run but it shows
splash screen of 1.6. So basically there is not such advantage and
firefox do not load multiple instance of jre, as far as i know.
 
R

Roedy Green

1.6 is
not going to have backword compatible with respect to that
application. I cannot change the code of application !!

As I said, I have yet to encounter an app that would run on 1.5 that
did not also run on 1.6. Try it.
--
Roedy Green Canadian Mind Products
http://mindprod.com

"For reason that have a lot to do with US Government bureaucracy, we settled on the one issue everyone could agree on, which was weapons of mass destruction."
~ Paul Wolfowitz 2003-06, explaining how the Bush administration sold the Iraq war to a gullible public.
 
R

Roedy Green

I have jre 1.6 on my browser. How can i have both version !!

You can't. You have to choose one version for your browsers in the
Java control panel.

You can have more than one installed, but that is rarely necessary
unless you are testing for compatibility with old versions.


--
Roedy Green Canadian Mind Products
http://mindprod.com

"For reason that have a lot to do with US Government bureaucracy, we settled on the one issue everyone could agree on, which was weapons of mass destruction."
~ Paul Wolfowitz 2003-06, explaining how the Bush administration sold the Iraq war to a gullible public.
 
R

Richard Maher

Hi Roedy,

Roedy Green said:
You can't.
Really?

You have to choose one version for your browsers in the
Java control panel.

Can anyone put me out of my misery and please tell me why Narendra's
requirement can be satisfied by: -

http://java.sun.com/javase/6/webnotes/6u10/plugin2/version-selection/index.html

Here's a quote that appears relevant (at least to me): -
[[[[[[[[[[[[
Not only does the new Java Plug-In support multiple simultaneously attached
JVM instances, it supports multiple JRE versions. More precisely, it
supports running an individual applet on top of a particular version of the
JRE without affecting which JRE version is used to run any other applet in
the same browser session. This capability is similar to that provided by
Java Web Start, which allows selection of which version of the JRE is used
to launch the application. When an earlier version of the JRE is selected
via the new plug-in, the new plug-in's code is actually run on top of the
earlier JRE version, again in similar fashion to how the Java Web Start
launcher works.

Limitations
The new Java Plug-In's version selection mechanism works on JRE versions as
far back as 1.4.2. JRE 1.3.1 and earlier are not supported. It is not
possible to use the new Java Plug-In for some applets in the browser session
and the classic Java Plug-In for other applets in the same browser session,
for example to circumvent the 1.3.1 limitation.

Due to technical limitations of earlier versions of the JRE, on Unix/X11
platforms (Solaris and Linux), the earliest JRE version that can be selected
is 5.0. Running applets on top of 1.4.2 using the new Java Plug-In is not
supported on these platforms.
]]]]]]]]]]]]]]]

To me it looks like seperate JREs on Linux for 5 and 6 is supported.

And here's another one: -
https://jdk6.dev.java.net/plugin2/#COMMAND_LINE_ARGS

Regards Richard Maher
 
R

Richard Maher

Hi,

Richard Maher said:
Can anyone put me out of my misery and please tell me why Narendra's
requirement can be satisfied by: -

Sorry, obviously meant "can NOT" rather than "can".

Isn't this all part of the *very* good stuff with Applets and 1.6, threading
redesign, multiple JREs, reworked LiveConnect, Cross Domain policy files,
and so on?

Cheers Richard MAher
 
R

Roedy Green

Not only does the new Java Plug-In support multiple simultaneously attached
JVM instances, it supports multiple JRE versions. More precisely, it
supports running an individual applet on top of a particular version of the
JRE without affecting which JRE version is used to run any other applet in
the same browser session.

I think that would apply only if you launched the Applet via a JNLP
file. There is no place in the ordinary <applet tag to specify a
particular JVM.

see http://mindprod.com/jgloss/multiplejdks.html
http://mindprod.com/jgloss/multiplejres.html
--
Roedy Green Canadian Mind Products
http://mindprod.com

"For reason that have a lot to do with US Government bureaucracy, we settled on the one issue everyone could agree on, which was weapons of mass destruction."
~ Paul Wolfowitz 2003-06, explaining how the Bush administration sold the Iraq war to a gullible public.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top