File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can not find Class File" Watch "Can not find Class File" New topic

Can not find Class File

Subhradip Podder
Ranch Hand

Joined: Aug 27, 2007
Posts: 36

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"
"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

Joined: May 26, 2003
Posts: 33106

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Can not find Class File
It's not a secret anymore!