views:

394

answers:

3

I already have installed Java SDK following which, I later also Downloaded Java EE which was not automatically Installed in Eclipse. How do I import the Java EE libraries in Eclipse?

+2  A: 

I'd suggest using Maven along with the m2eclipse plugin. This will import all of the packages you need for you.

Taylor Leese
+4  A: 
VonC
+1 for J2EE edition of Eclipse, it's the easiest solution.
Jorn
+1  A: 

Download and install/unpack your favorite JEE container (for web applications use Tomcat)

Download and start the JEE edition of Eclipse

In the Server panel create a new local server corresponding to the above JEE container.

Create a new "Web -> Dynamic Web Project" using the server defined above. Set the "Servlet API level" to 2.4 or 2.5 depending on your needs.

The new project will have access to the appropriate JEE libraries.

Thorbjørn Ravn Andersen
Thank you. Thank you. Thank You.
Catfish
You're welcome. Took me a while to figure out - it is a bit backward.
Thorbjørn Ravn Andersen