Java SE 和 Java EE 之间的主要区别是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1065240/
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
What's the main difference between Java SE and Java EE?
提问by omg
What's the main difference between Java SE and Java EE?
Java SE 和 Java EE 之间的主要区别是什么?
回答by Tom
Java EE is enterprise edition.
Java EE 是企业版。
Includes jsp, servlets, beans, and some other stuff for server programming.
包括 jsp、servlet、bean 和其他一些用于服务器编程的东西。
Java SE is standard edition. This is plain old Java. Includes GUI stuff.
Java SE 是标准版。这是普通的旧Java。包括图形用户界面的东西。
回答by Savvas Dalkitsis
Java SE refers to the standard version of Java and its libraries. Java EE refers to the Enterprise edition of Java which is used to deploy web applications.
Java SE 是指 Java 及其库的标准版本。Java EE 是指用于部署 Web 应用程序的 Java 企业版。
回答by Otávio Décio
The biggest difference are the enterprise services (hence the ee) such as an application server supporting EJBs etc.
最大的区别是企业服务(因此称为 ee),例如支持 EJB 的应用服务器等。
回答by Pesto
First, J2SE and J2EE have been renamed. They're now Java SE and Java EE.
首先,J2SE 和 J2EE 已重命名。它们现在是 Java SE 和 Java EE。
Essentially, Java SE is your standard Java designed for end-users. That's what you'd develop to for desktop applications. Java EE is the enterprise edition, designed for server programming, such as SOA and web applications.
从本质上讲,Java SE 是为最终用户设计的标准 Java。这就是您要为桌面应用程序开发的内容。Java EE 是企业版,专为服务器编程而设计,例如 SOA 和 Web 应用程序。
回答by cd1
Java SE(formerly J2SE) is the basic Java environment. In Java SE, you make all the "standards" programs with Java, using the API described here. You only need a JVM to use Java SE.
Java SE(以前称为 J2SE)是基本的 Java 环境。在 Java SE 中,您可以使用此处描述的 API 使用 Java 制作所有“标准”程序。您只需要一个 JVM 即可使用 Java SE。
Java EE(formerly J2EE) is the enterprise edition of Java. With it, you make websites, Java Beans, and more powerful server applications. Besides the JVM, you need an application server Java EE-compatible, like Glassfish, JBoss, and others.
Java EE(以前称为 J2EE)是 Java 的企业版。有了它,您可以制作网站、Java Bean 和更强大的服务器应用程序。除了 JVM,您还需要一个与 Java EE 兼容的应用服务器,例如Glassfish、JBoss等。
回答by rafi
In Java SE you need software to run the program like if you have developed a desktop application and if you want to share the application with other machines all the machines have to install the software for running the application. But in Java EE there is no software needed to install in all the machines. Java EE has the forward capabilities. This is only one simple example. There are lots of differences.
在 Java SE 中,您需要软件来运行该程序,就像您开发了一个桌面应用程序一样,如果您想与其他机器共享该应用程序,所有机器都必须安装该软件才能运行该应用程序。但是在 Java EE 中,不需要在所有机器上安装软件。Java EE 具有转发功能。这只是一个简单的例子。有很多不同之处。
回答by Kermia
Java SEstands for Java standard edition and is normally for developing desktop applications, forms the core/base API.
Java SE代表 Java 标准版,通常用于开发桌面应用程序,形成核心/基础 API。
Java EEstands for Java enterprise edition for applications which run on servers, for example web sites.
Java EE代表 Java 企业版,适用于在服务器上运行的应用程序,例如网站。
Java MEstands for Java micro edition for applications which run on resource constrained devices (small scale devices) like cell phones, for example games.
Java ME代表 Java 微型版,适用于在资源受限设备(小型设备)(如手机)上运行的应用程序,例如游戏。
回答by Mohiul Alam
http://www.dreamincode.net/forums/topic/99678-j2se-vs-j2ee-what-are-main-differences/
http://www.dreamincode.net/forums/topic/99678-j2se-vs-j2ee-what-are-main-differences/
As far as the language goes it is not as though java changes. Java EE has access to all of the SE libraries. However EE adds a set of libraries for dealing with enterprise applications.
就语言而言,Java 并没有改变。Java EE 可以访问所有 SE 库。然而,EE 添加了一组用于处理企业应用程序的库。
Java EE is more like a "platform" or an general area of development.
Java EE 更像是一个“平台”或一个通用的开发领域。
In Java SE you write applications that run as standalone java programs or as Applets. In JavaEE you can still do this, but you can also write applications that run inside of a Java EE container. The container can do a great amount of management for you such as scaling an application across threads, providing resource pools, and management features.
在 Java SE 中,您可以编写作为独立 Java 程序或 Applet 运行的应用程序。在 JavaEE 中,您仍然可以这样做,但您也可以编写在 Java EE 容器内运行的应用程序。容器可以为您进行大量管理,例如跨线程扩展应用程序、提供资源池和管理功能。
Java EE has a web framework based upon Servlets. It has JSP (Java Server Pages) which is a templating language that compiles from JSP to a Java servlet where it can be run by the container.
Java EE 有一个基于 Servlet 的 Web 框架。它有 JSP(Java Server Pages),它是一种模板语言,可以从 JSP 编译成 Java servlet,在其中它可以由容器运行。
So Java EE is more or less Java SE + Enterprise platform technologies.
所以 Java EE 或多或少是 Java SE + Enterprise 平台技术。
Java EE is far more than just a couple of extra libraries (that is what I thought when I first looked at it) since there are a ton of frameworks and technologies built upon the Java EE specifications.
Java EE 不仅仅是几个额外的库(这是我第一次看到它时的想法),因为有大量框架和技术构建在 Java EE 规范之上。
But it all boils down to just plain old java.
但这一切都归结为简单的旧Java。
回答by xyz
Best description i've encounter so far is available on Oraclewebsite.
迄今为止我遇到的最佳描述可在Oracle网站上找到。
Java SE's API provides the core functionality of the Java programming language. It defines everything from the basic types and objects of the Java programming language to high-level classes that are used for networking, security, database access, graphical user interface (GUI) development, and XML parsing.
The Java EE platform is built on top of the Java SE platform. The Java EE platform provides an API and runtime environment for developing and running large-scale, multi-tiered, scalable, reliable, and secure network applications.
Java SE 的 API 提供了 Java 编程语言的核心功能。它定义了从 Java 编程语言的基本类型和对象到用于网络、安全、数据库访问、图形用户界面 (GUI) 开发和 XML 解析的高级类的所有内容。
Java EE 平台构建在 Java SE 平台之上。Java EE 平台为开发和运行大规模、多层、可扩展、可靠和安全的网络应用程序提供了 API 和运行时环境。
If you consider developing application using for example Spring Framework you will use both API's and would have to learn key concept of JavaServer Pages and related technologies like for ex.: JSP, JPA, JDBC, Dependency Injection etc.
如果您考虑使用例如 Spring Framework 开发应用程序,您将同时使用这两个 API,并且必须学习 JavaServer Pages 和相关技术的关键概念,例如:JSP、JPA、JDBC、依赖注入等。
回答by Vikas Garg
JavaSE and JavaEE both are computing platform which allows the developed software to run.
JavaSE和JavaEE都是允许开发的软件运行的计算平台。
There are three main computing platform released by Sun Microsystems, which was eventually taken over by the Oracle Corporation. The computing platforms are all based on the Java programming language. These computing platforms are:
Sun Microsystems 发布了三个主要的计算平台,最终被 Oracle 公司接管。计算平台均基于Java编程语言。这些计算平台是:
Java SE, i.e. Java Standard Edition. It is normally used for developing desktop applications. It forms the core/base API.
Java EE, i.e. Java Enterprise Edition. This was originally known as Java 2 Platform, Enterprise Edition or J2EE. The name was eventually changed to Java Platform, Enterprise Edition or Java EE in version 5. Java EE is mainly used for applications which run on servers, such as web sites.
Java ME, i.e. Java Micro Edition. It is mainly used for applications which run on resource constrained devices (small scale devices) like cell phones, most commonly games.
Java SE,即Java 标准版。它通常用于开发桌面应用程序。它构成了核心/基础 API。
Java EE,即Java 企业版。这最初称为 Java 2 Platform, Enterprise Edition 或 J2EE。该名称最终在版本 5 中更改为 Java Platform, Enterprise Edition 或 Java EE。Java EE 主要用于在服务器上运行的应用程序,例如网站。
Java ME,即Java Micro Edition。它主要用于在资源受限设备(小型设备)上运行的应用程序,例如手机,最常见的是游戏。