File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes java.lang.NoClassDefFoundError 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 » Servlets
Bookmark "java.lang.NoClassDefFoundError" Watch "java.lang.NoClassDefFoundError" New topic


bujji adapa

Joined: Oct 17, 2001
Posts: 11
My code works like:
Applet calls servlet for random number where the servlet again calls a randomnumber generator class and responds back to applet with the randomnumber.And atlast the applet draws a graph using that randomnumber.
Everything is working fine,
But ,when i run my applet iam getting java.lang.NoClassDefFoundError.
Can anyone tell me exactly what is going on?

Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Noclassdef found errors mean that your applet can't load a required class. Exactly what class can't it find (should be in the exception text)? How are you loading the applet (from a JAR file or a directory structure)?
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at for other WebSphere information.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: java.lang.NoClassDefFoundError
It's not a secret anymore!