jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Can not find Class File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can not find Class File" Watch "Can not find Class File" New topic
Author

Can not find Class File

Subhradip Podder
Ranch Hand

Joined: Aug 27, 2007
Posts: 36
HI,

I am using Java 1.4 in MyEclipse and I am getting the following errors:

"The project was not built since its build path was incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try building this project"
AND
"The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files"

How do I fix this???
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Subhradip,
Add j2ee.jar or servlet.jar to your project's classpath. This jar is distributed with your application server.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Don't get me started about those stupid light bulbs.
 
subject: Can not find Class File