aspose file tools*
The moose likes Applets and the fly likes NoClassDefFound error in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "NoClassDefFound error in applet" Watch "NoClassDefFound error in applet" New topic
Author

NoClassDefFound error in applet

Saurabh Manohar
Greenhorn

Joined: Nov 15, 2004
Posts: 1
Hi all,
I am writing an applet and using some Open source libraries in it. The clas file compiles well, but when I run the applet in my browser, I get a java.lang.NoClassDefFound error. I am using Tomcat 5.0 as my web server and JVM 1.4.2. If I rewrite the same code as an application, it works fine. But the applet doesn't. What am I missing here?

Thanks in advance

Saurabh Manohar
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8707
    
    6

All of the class files an applet depends on must be available on the server for download. The application works because you probably have the dependency in your classpath. Take a look at the Java Tutorial: Using the APPLET tag for your options.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFound error in applet
 
Similar Threads
SSLException: untrusted server cert chain
Poping applet from a servlet
Class Not Found Error
java.lang.ClassNotFoundException help!!
problem in grant permission fo applet