• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Swing Applet Class Not Found Exception

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic