• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDef error in appletviewer

 
sonny kher
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?
-sonny
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic