Forums Register Login

Java Plug-In and Firefox

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
I've posted this message on 4 forums:

MozzillaZine->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
+Pie Number of slices to send: Send
As far as JavaRanch is concerned, this is the right forum. The issue is very specific; quite possibly nobody else who frequents any of these forums has run into it.
+Pie Number of slices to send: Send
 

Originally posted by Kenneth Tepper:
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?


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



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�kon Innerdal ]
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2915 times.
Similar Threads
Applet in html page problem
Appletviewer-HTML in Swing 1.1.8
Problems when initiating applet for jre1.4.2 when jre1.5 is on the client
Browsers and jre plugins for applets
Applets not running on Sun Solaris , Netscape
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:50:56.