Link to home
Start Free TrialLog in
Avatar of superman19
superman19

asked on

Eclipse IDE Need Help

Hi, i have open an existing project and when i "build " the project i have this error. based on the error, it's seems require me to fix the build path of the system. I am loss.

>>The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try rebuilding this project.


From the project's properties, i have see the "Java Build Path". and within this build path, i have 4 tab, Source;Projects;libralies;Order and Export.

For my source, the project is in there, for my projects, nothing is checked, for my libralies, i have selected the JRE System Library and my sturt.jar files, for my Order and Export,  I arrange the JRE System library first, my project, and struts.jar file.

And i started to rebuild the project, but it's doesn't work...

any ideas?
ASKER CERTIFIED SOLUTION
Avatar of jimmack
jimmack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of taiping
taiping

where is this file located??
In your servlet container library path (eg. /var/tomcat4/common/lib/servlet.jar)

I also have it in JBoss, Netbeans and httpunit directories.
Avatar of superman19

ASKER

negative.. i am running tomcat 5.0
and this is the .jar file in the common/lin files.. didnt see the servlet.jar. but i add the servelt-api.jar into the Eclipse Library also same error come out...

common/lib
1. ant
2. commons-collections
3. commons-dbcp
4. commons-el
5. commons-pool
6. jasper-compiler
7. japser-runtime
8. jmx
9. jsp-api
10. naming-common
11. naming-factory
12. namng-java
13. naming-resource
14. servlet-api
15. tools

You've identified the right jar file, javax.servlet.http.HttpServletRequest.class is in servlet-api.jar.

And this is definitely included in the Eclipse library path?

Is the error still identical? ie.

>>The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try rebuilding this project.

I'm not quite sure what to do from here.  (I'm not an Eclipse user, so bear with me).  When you do a build, is there a window that shows the build progress?  If so, is it possible to display the details in a verbose way - so that you can see the "javac ..." line that is executed?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
jimmack, hm... i get what you mean. If the error shown me is something like cant find the incomplete, i need to do some import the jar file into the build path. But the problem is, i have doen that already... something funny happend...

ken, i am running under Wondow XP Profesional.

By the way, i just notice that in order for me to code Struts program, there is no way for me to start the project from scratch. I HAVE to build using the sturk-blank.war file to code. Do your agree?  
>> I HAVE to build using the sturk-blank.war file to code. Do your agree?  
If you want to start struts project from scrathc, you need to put struts.jar file in web-inf/lib and create you own struts-config.xml, then edit web.xml to include struts action servlet and etc.

the struts-blank.war gets those done for you.
ken, ok. Than kyou.
>> If the error shown me is something like cant find the incomplete

Can you post the complete error?
jimmack, i think this error is becasue of the Eclipse IDE causing me.

Nowi have tested to code my struts using the struts-blank.war template, eveyrhting is fine for me.

:-)

Well, i would say something wrong with the configyration file or stuffs like that.

Thank You for you time.
No problem ;-)
glad to know your problem is solved and thanks for the points :-)