Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to Download java-ee.jar?

Tags:

jar

jakarta-ee

Where does the Jar file come from? I expected it to be either a part of the JDK or Eclipse. That expectation proved to be wrong.

like image 866
James Raitsev Avatar asked Jul 28 '10 23:07

James Raitsev


People also ask

Where can I download Java EE?

Go to the Oracle Java Archive page.

Is Java EE included in JDK?

No, it does not. Java EE is a specification - and its implementation can be downloaded in form of an application server (e.g. GlassFish).


2 Answers

Sun/Oracle is providing a java-ee.jar - which contains only the Java EE APIs and does not contain any method bodies - that you can use to compile against it (from the java.net maven repository):

  • For Java EE 5: http://download.java.net/maven/1/javaee/jars/javaee-api-5.jar
  • For Java EE 6: http://download.java.net/maven/2/javax/javaee-api/6.0/javaee-api-6.0.jar

If you want to execute some Java EE code, you'll need a Java EE application server, they provide an implementation of the Java EE APIs. For example, for Java EE 6, there is GlassFish.

like image 78
Pascal Thivent Avatar answered Sep 20 '22 09:09

Pascal Thivent


if you want javaee-api-7.jar, use maven dependency

<dependency>     <groupId>javax</groupId>     <artifactId>javaee-api</artifactId>     <version>7.0</version> </dependency> 

or you can download from here

like image 30
nobody Avatar answered Sep 17 '22 09:09

nobody