File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes class not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "class not found exception" Watch "class not found exception" New topic

class not found exception

Preethi Dev
Ranch Hand

Joined: Sep 07, 2008
Posts: 265
Hi there!

i have been trying to finish one servlet example from the head first but getting the error and exception while running as

"class not found exception"

i dont know how to keep the class files under WEB-INF/Classes. but i tried it by going through buid path and add class folder option then i gave WEB-INF/Classes
and also
in my workspace i did copy and paste the class file but it's not working.

please help me . I am getting depressed nothing is working out when i try the programs...

I stucking on these basic stuffs for long time...please someone help me to move on ...

Thanks in advance

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hmm.. C *WEB-INF/Classes* and *WEB-INF/classes* . and are you using eclipse ? do you added servlet-api and jsp-api jars? also please post the error trace.
Preethi Dev
Ranch Hand

Joined: Sep 07, 2008
Posts: 265

I am using eclipse and since my program is with servlet the simple one i have added servlet-api.jar. if i open my workspace folder i can see the class file of my program but i dont know why my IDE cant pick it up while running.

Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

do you have your xml entries correct ...
I agree. Here's the link:
subject: class not found exception
It's not a secret anymore!