File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Error: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Error: "NoClassDefFoundError" " Watch "Error: "NoClassDefFoundError" " New topic

Error: "NoClassDefFoundError"

Rod Taylor

Joined: Aug 03, 2012
Posts: 25

Can anyone please explain to me why this html code will keep showing "NoClassDefFoundError" with a description "SimpleApp (wrong name: applet/simpleapp/SimpleApp)"?

It's a very simple code:

And here is the html code:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<Applet code="SimpleApp" height="500" width="300" >

I compiled the code with a specified destination since I like it that my source and class files are separated. I put the html code in the same folder as the SimpleApp.class folder.

Any help appreciated. Thanks!

Nothing you're really good at that you don't do everyday (Will Smith)
I agree. Here's the link:
subject: Error: "NoClassDefFoundError"
It's not a secret anymore!