Win a copy of AWS Security this week in the Cloud/Virtualization 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

NoClassDef error in appletviewer

Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what Classpath does the appletviewer use? i can compile the applet without a problem but I get NoClassDef (for one of the packages I'm importing) error when I run it in the appletviewer.
Funny part is if I put a main method inside and run it with java myClass, it is able to find and import those packages just not with appletviewer. Any suggestions?
Ranch Hand
Posts: 15304
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chances are it is a problem with your tag in your HTML file.
If you have multiple JAR or Class files that are needed by your main class, you should include them in the Archive Parameter of your TAG in your HTML file.

[ January 08, 2003: Message edited by: Gregg Bolinger ]
I child proofed my house but they still get in. Distract them with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic