Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

NoClassDefFound error in applet

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9612
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic