Java Plug-In and Firefox
I've used the HtmlConverter (1.4.2) to convert an html file with an Applet tag. I expected that the converted html page would detect a system with an earlier version of the JRE and guide the user through an upgrade, since the Applet requires 1.4.2 or later.
Things work as expected under the following Windows XP environments:
IE 6 with either no JRE installed or 1.3.1 installed
Firefox 1.5, Netscape 8.1 or Opera 9 with no JRE installed
However, the mismatch in JRE versions is not detected with:
Firefox 1.5, Netscape 8.1 or Opera 9 with JRE 1.3.1
In the later case, under Firefox for example, the browser appears to hang with a "Loading Java Applet.." message in the Applet area and java.lang.NoClassDefFoundError in the Java Console.
In the HtmlConverter, I selected "Extended (Standard + All Browsers/Platforms)" and "Use any Java 1.4, or higher".
Can anyone suggest a way around this problem?
[956 byte] By [
KenTepa] at [2007-10-3 4:10:20]

I've posted this message on 4 forums:
MozillaZine->Mozilla Development
JavaRanch Big Moose Saloon->Java->Applets
Code Comments->Java Forum->Java Programmer
Java Technology Forums->Java Plug-In (java.sun.com)
without getting a single reply. Can any suggest a more appropriate forum?
Thanks,
KenTep
The only response that I got on this issue was on http://saloon.javaranch.com in the Applets forum and is copied below. I tried the solution and got encouraging results, but have not had time to implement it and fully test. I did note that there is a missing ">" on the object tag in the first line.
Please let me know if you are able to use this solution successfully and I will do likewise.
Ken
--
Copy of Java Ranch response:
The problem is the <APPLET> tag itself... if an java-plugin enabled browser sees the applet tag, it fires up the default plugin regardless of version spesification (at least what I've experienced)
So, to solve this, I instead used the pure html example from here
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html#html
code:
--
<objectclassid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA"
><param name="code" value="Applet1.class">
<comment>
<embed code="Applet1.class" type="application/x-java-applet;jpi-version=1.5.0">
<noembed>
No Java Support.
</noembed>
</embed>
</comment>
</object>
--
Using the above template, and you should be able to solve your problem, but I have only tested this with IE(6) and Mozilla Firefox(windows/linux) so far.
Note that to require 1.5 and higher (e.g. 1.5.0_06), you should use "version=1.5" not "jpi-version=1.5.0"
[ September 26, 2006: Message edited by: H錵on Innerdal ]