Where to Download java-ee.jar?

后端 未结 3 1280
[愿得一人]
[愿得一人] 2020-12-12 23:49

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.

相关标签:
3条回答
  • 2020-12-13 00:18

    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.

    0 讨论(0)
  • 2020-12-13 00:34

    Download Glassfish or JBOSS or another Java EE app server. They all have it.

    0 讨论(0)
  • 2020-12-13 00:37

    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

    0 讨论(0)
提交回复
热议问题