在哪里下载java-ee.jar? [英] Where to Download java-ee.jar?

查看:152
本文介绍了在哪里下载java-ee.jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jar文件来自哪里?我希望它可以是JDK或Eclipse的一部分。这种期望被证明是错误的。

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.

推荐答案

Sun / Oracle正在提供 java-ee.jar - 只包含Java EE API且不包含任何方法体 - 您可以用它来编译(来自java.net maven存储库):

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

如果你想要要执行某些Java EE代码,您需要一个Java EE应用程序服务器,它们提供Java EE API的实现。例如,对于Java EE 6,有 GlassFish

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.

这篇关于在哪里下载java-ee.jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆