Setup JAVA code in Eclipse

I obtained a sourcecode that creates a web portal and the source code is in JAVA.
I need to use this source code to setup my development environment.
I imported the source code via File-> Import in Eclipse. When I compile I get error.
It shows the attached problems with the compilation. Could you assist how to resolve it?compilation errorCapture1.JPG
Capture2.JPG
toookiAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
chaitu chaituConnect With a Mentor Commented:
need to add servlet.jar in these libraries.
0
 
chaitu chaituCommented:
attach the project structure screen shot that imported in eclipse.
i assume that project structure was wrong.

apart from that clean the project in eclipse..


project---clean
0
 
awking00Commented:
Since your import line is showing an x, I suspect they include ones that are not in your build path. What do the imports look like when you expand them?
0
 
toookiAuthor Commented:
Thank you all. I used project-->clean. I have attached the current screenshots below that will show the error details. I am getting the error: "The type javax.servlet.httpservletrequest cannot be resolved".
screenshot1screenshot2
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.