Java SE 和 Java EE 之间的区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3433514/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Difference between Java SE & Java EE
提问by prasad
What is the difference between Java SE & Java EE?
Java SE 和 Java EE 之间有什么区别?
回答by JUST MY correct OPINION
Java SE(full name: Java Platform, Standard Edition, old names too many to enumerate) is a specification of a programming platform that consists of:
Java SE(全名:Java Platform, Standard Edition,旧名称太多无法一一列举)是一种编程平台的规范,它包括:
- The Java programming language itself.
- A virtual machine that the Java compiler targets.
- A set of standard libraries.
- A set of standard utilities related to the above.
- Java 编程语言本身。
- Java 编译器针对的虚拟机。
- 一组标准库。
- 一组与上述相关的标准实用程序。
Confusingly it's also the default name of a specific implementation of the Java SE specification (the proper name being various combinations of the Java SE name with "JDK" or "JRE" attached). You can find out more about Java SE(and most especially the Oracle JDK/JRE implementation) on Oracle's page for it(latest stable version).
令人困惑的是,它也是 Java SE 规范特定实现的默认名称(正确名称是 Java SE 名称与“JDK”或“JRE”附加的各种组合)。您可以在 Oracle 的页面(最新稳定版本)上找到有关Java SE(尤其是 Oracle JDK/JRE 实现)的更多信息。
Java EE(full name: Java Platform, Enterprise Edition, old names, as above, too many to enumerate) is a specification of anotherprogramming platform—a framework, really—that is built up on top of the Java SEplatform. This platform is intended to add functionality for modern business applications like web applications, n-tier architectures, etc. There are a myriad of implementations of this specification out there—both open source and proprietary—including Oracle's Glassfish/Java EE SDK, IBM's Websphere, Apache's Geronimo, etc. You can find more information about Java EE (and the Glassfish/Java EE SDK implementation of it) again on Oracle's page.
Java EE(全名:Java Platform, Enterprise Edition,旧名称,如上,太多无法一一列举)是另一种编程平台的规范——实际上是一个框架——它建立在Java SE平台之上。该平台旨在为现代业务应用程序(如 Web 应用程序、n 层架构等)添加功能。该规范有无数的实现 - 开源和专有 - 包括 Oracle 的Glassfish/Java EE SDK、IBM 的Websphere、Apache 的Geronimo等。您可以再次找到有关 Java EE(以及它的Glassfish/Java EE SDK 实现)的更多信息在 Oracle 的页面上。
回答by paxdiablo
Java SE (standard edition) is just the normal specification of Java. Java EE (enterprise edition) is Java with all sorts of add-ons for enterpris-y things like:
Java SE(标准版)只是 Java 的正常规范。Java EE(企业版)是带有各种企业级附加组件的 Java,例如:
- Enterprise JavaBeans;
- Java Persistence API;
- Servlets;
- Java Server Pages.
- 企业 JavaBeans;
- Java 持久化 API;
- 小服务程序;
- Java 服务器页面。
(not an exhaustive list, more detail available on Wikipedia). You generally get Java SE when you download the SDK (for development) or JRE (for running Java applications).
(不是详尽的列表,更多详细信息可在Wikipedia 上找到)。当您下载 SDK(用于开发)或 JRE(用于运行 Java 应用程序)时,您通常会获得 Java SE。
On the other hand, you generally get all the Java EE goodies when you start using IBM Websphere Application Server, or JBoss, or another enterprise-class application server.
另一方面,当您开始使用 IBM Websphere Application Server、JBoss 或其他企业级应用服务器时,通常会获得所有 Java EE 的优点。
You can download the Oracle Java EE 6 SDK here. The JSR for Java EE 6 is here.
回答by Truong Ha
You can just know this for short: Java SE is for desktop applications and it is the core of Java. Java EE is for web applications which include JSP & Servlet, EJB, Webservice and they are kinda extensions. You can use them when install a Servlet container (Tomcat) or a JPA provider (Oracle Toplink, Hibernate) or an entire Web application which includes servlet container, JPA provider such as JBoss, GlassFish.
您可以简单地知道这一点:Java SE 用于桌面应用程序,它是 Java 的核心。Java EE 适用于包括 JSP 和 Servlet、EJB、Webservice 在内的 Web 应用程序,它们是一种扩展。您可以在安装 Servlet 容器 (Tomcat) 或 JPA 提供程序(Oracle Toplink、Hibernate)或包含 servlet 容器、JPA 提供程序(如 JBoss、GlassFish)的整个 Web 应用程序时使用它们。

