Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Plug-In and Firefox

 
Kenneth Tepper
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
H�kon Innerdal
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic