• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

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
0
toooki
Asked:
toooki
  • 2
1 Solution
 
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
 
chaitu chaituCommented:
need to add servlet.jar in these libraries.
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.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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