Take the 2-minute tour ×

I need help with Java SDKs. I have installed Java SE SDK, and I also installed Java EE SDK. However, where are the JARs in the Java EE SDK? Isn't Java EE SDK a superset of Java SE SDK? Do I need both?

It doesn't seem that I successfully manages to add all libraries in IntelliJ.

enter image description here

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Java EE is an abstract API. The application server (e.g. Glassfish, JBoss AS, Tomcat, etc) is the concrete implementation. The Java EE download link on oracle.com contains the concrete reference implementation of the Java EE API, which happens to be Glassfish.

In order to develop against the Java EE API, you just need to reference the application server's libraries in the compile time classpath (the build path as it is called in most IDEs). I'm not sure about IntelliJ, but in Eclipse all you need to do is to integrate the application server runtime in the IDE's server configuration and then associate the web project with exactly that server runtime in the project's properties.

You do not need to explicitly add it to the JDK library, even more, it would possibly make things worse in the future as in losing portability and possible major classpath troubles. See also this related (Eclipse-targeted) question: How do I import the javax.servlet API in my Eclipse project?

share|improve this answer
add comment

Java EE is a set of additional APIs/interfaces (and most usually, some implementations of these). These are APIs for web applications, EJBs etc. You can use the JDK to build for this, provided you have the additional APIs and the implementations. Most usually a Java EE application will run in an application or web container.

Ref. Link JDK = Java SE && JDK != Java EE?

share|improve this answer
So where do I find this EE JDK folder after I installed it? All I get is a glassfish folder. –  user626912 Jan 2 '12 at 18:07
[Installed Drive]:\glassfish3\glassfish\lib This might help you –  Gokul Jan 2 '12 at 18:13
Thank you, do you have time for coming on Java chat for 3 minutes? –  user626912 Jan 2 '12 at 18:14
New here, No idea about chat!!! –  Gokul Jan 2 '12 at 18:20
add comment

Your Answer


