• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Swing Applet Class Not Found Exception

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am testing a swing applet using swing1.1.1.
When I run the applet using appletviewer it is working fine, but when I try to open using IE 5.0 & 5.5 I am getting class not found error. I checked and double checked the class name to make sure that there is no typo.
I also tested by creating a jar file and load the class from jar file with no luck.
I am able to run a regular applet (non swing applet) properly from the same directory.
Any idea why this is happening?
The HTML and the sample I am trying to run are from swing demo directory(SwingApplet.html & SwingApplet.java).

Thanks
Suresh
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What JVM version is your browser using? Are you using the out-of-date MS JVM? If so, it won't support Swing. Download the latest JVM plugin from Sun and you will have Swing support in your applet.
 
Suresh Kanagalingam
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. It works with new JVM.
Since customers may not have new JVM what is the best way to implement this?
Suresh
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should inform the customers of the browser version(by disclaimer or product release note or a message in the web page) that will be supported by your application. IE 6.0 or later should have the updated JVMs.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the MS JVM is a dead product. They haven't updated it in years, and they're not even including it with Windows anymore. Like any other product that is no longer supported, you must migrate to one that is, in this case the JVM Plug-in from Sun. You can download it from Sun's site.
Go to java.com for more info.
 
I don't get it. A whale wearing overalls? How does that even work? It's like a tiny ad wearing overalls.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic