File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes NoClassDeff found Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "NoClassDeff found Error" Watch "NoClassDeff found Error" New topic

NoClassDeff found Error

Herbert Maosa
Ranch Hand

Joined: May 03, 2000
Posts: 289
I dont know what has happened, but I was able to run servlets without a problem, but lately I dont know what has changed but I can not run servlets anymore. I get an error message like java.lang.NoClassDeffFound : javax/servlet/http/HttpServlet
and a whole bunch of the exception stack trace which does not mention my pogram.
Can someone help me out here ?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
That sounds like a problem with class library incompatibility - I had a bunch of mystery messages like that due to an old JSKD.jar file hanging around. Have you installed any new Java related programs that might have added a jar file somewhere?
Herbert Maosa
Ranch Hand

Joined: May 03, 2000
Posts: 289
Yea, I added quite a few. I added the JSDK which did not work, always complained about some unknown errors.Then I installed JWSDK, without uninstalling the JSDK, this did not work too, and finally nothing worked any more. DO you think this might be the cause ? Do you think I need to uninstall this other stuff ?
I agree. Here's the link:
subject: NoClassDeff found Error
It's not a secret anymore!