This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes NoClassDef error in appletviewer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "NoClassDef error in appletviewer" Watch "NoClassDef error in appletviewer" New topic

NoClassDef error in appletviewer

sonny kher
Ranch Hand

Joined: Nov 06, 2001
Posts: 83
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?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

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 ]

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: NoClassDef error in appletviewer
Similar Threads
java.lang NoClassDef Found Error
java.lang NoClassDef Found Error
Trouble starting JBoss, noclassdef: javax/servlet/ServletContext
Exception in Thread NoClassDef Found error
NoClassDef erorr