Solved

Eclipse IDE Need Help

Posted on 2003-11-13
13
3,189 Views
Last Modified: 2012-06-27
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?
0
Comment
Question by:superman19
  • 5
  • 4
  • 3
  • +1
13 Comments
 
LVL 15

Accepted Solution

by:
jimmack earned 100 total points
ID: 9738091
You also need to include the servlet.jar file in your libraries path.
0
 

Expert Comment

by:taiping
ID: 9738269
where is this file located??
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9738333
In your servlet container library path (eg. /var/tomcat4/common/lib/servlet.jar)

I also have it in JBoss, Netbeans and httpunit directories.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:superman19
ID: 9745868
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

0
 
LVL 15

Expert Comment

by:jimmack
ID: 9746618
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?
0
 
LVL 14

Assisted Solution

by:kennethxu
kennethxu earned 25 total points
ID: 9749831
if you are running under Unix/Linux, make sure the accout that runs eclipse has read access permission to servlet-api.jar file.
0
 

Author Comment

by:superman19
ID: 9762141
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?  
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9763770
>> 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.
0
 

Author Comment

by:superman19
ID: 9768020
ken, ok. Than kyou.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9769983
>> If the error shown me is something like cant find the incomplete

Can you post the complete error?
0
 

Author Comment

by:superman19
ID: 9770204
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.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9770231
No problem ;-)
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 9771621
glad to know your problem is solved and thanks for the points :-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
caughtSpeeding java challenge 16 139
sortaSum challenge java 17 174
How to set default webapp for host 6 47
main method of string class 3 117
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question