Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2086
  • Last Modified:

Servlet context problem

I get the following error in eclipse when a compile a web project with servlet2.5 jar .
Description      Resource      Path      Location      Type
The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.ServletContext. Fix the build path then try building this project
0
randyraj
Asked:
randyraj
1 Solution
 
sweetfa2Commented:
Right click on your eclipse project.
Select Build Path from Context menu.
Select "Configure build path"
Select Libraries Tab.

Ensure servlet-api.jar is in your list, otherwise add it by clicking on add jars if it is in a lib directory in your project, or add external jars if it is not within your project.
0
 
randyrajAuthor Commented:
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now