Solved

Setup JAVA code in Eclipse

Posted on 2014-04-10
4
366 Views
Last Modified: 2014-05-21
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
Comment
Question by:toooki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 39993399
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
 
LVL 32

Expert Comment

by:awking00
ID: 39994325
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
 

Author Comment

by:toooki
ID: 40000510
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
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 500 total points
ID: 40000701
need to add servlet.jar in these libraries.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
A short article about problems I had with the new location API and permissions in Marshmallow
This video teaches viewers about errors in exception handling.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

735 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