aspose file tools*
The moose likes Applets and the fly likes Java Plug-In and Firefox    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Java Plug-In and Firefox    " Watch "Java Plug-In and Firefox    " New topic
Author

Java Plug-In and Firefox

Kenneth Tepper
Greenhorn

Joined: Sep 07, 2006
Posts: 2
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?
Kenneth Tepper
Greenhorn

Joined: Sep 07, 2006
Posts: 2
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
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.


Ping & DNS - my free Android networking tools app
H�kon Innerdal
Greenhorn

Joined: Sep 26, 2006
Posts: 1
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 ]
 
Consider Paul's rocket mass heater.
 
subject: Java Plug-In and Firefox