Solved

Setup JAVA code in Eclipse

Posted on 2014-04-10
4
359 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
control image tags in a string ? 12 111
Tembedded WB animatid gifs not animated on some pcs 2 73
javap not working 8 38
T-SQL:  Sigh---Boy, this is fun.... 12 33
This is about my first experience with programming Arduino.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 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

19 Experts available now in Live!

Get 1:1 Help Now