Solved

Eclipse IDE Need Help

Posted on 2003-11-13
13
3,182 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
Comment Utility
You also need to include the servlet.jar file in your libraries path.
0
 

Expert Comment

by:taiping
Comment Utility
where is this file located??
0
 
LVL 15

Expert Comment

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

I also have it in JBoss, Netbeans and httpunit directories.
0
 

Author Comment

by:superman19
Comment Utility
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
Comment Utility
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
Comment Utility
if you are running under Unix/Linux, make sure the accout that runs eclipse has read access permission to servlet-api.jar file.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:superman19
Comment Utility
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
Comment Utility
>> 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
Comment Utility
ken, ok. Than kyou.
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
>> If the error shown me is something like cant find the incomplete

Can you post the complete error?
0
 

Author Comment

by:superman19
Comment Utility
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
Comment Utility
No problem ;-)
0
 
LVL 14

Expert Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
xjc and jaxb 2 88
Lamba in java 8 9 235
getting Http 404 error in jsp forms 8 72
using if condition without JSTL 2 101
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now