Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java Plug-In and Firefox

 
Greenhorn
Posts: 2
  • 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
  • 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
 
Rancher
Posts: 43016
76
  • 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.
 
Greenhorn
Posts: 1
  • 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 ]
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic