*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can not find Class File