This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 13018
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!