Oracle的服务器JRE包含JDK吗?

时间:2023-01-23 17:19:22

I've just downloaded Oracle's Server JRE for Java SE 7 (link) The file I downloaded was server-jre-7u45-linux-x64.tar.gz. When I extracted this file I was surprised to find a directory named jdk1.7.0_45 was created containing the full java JDK. Not what I expected from a JRE install. What is going on here?

我刚刚为Java SE 7下载了Oracle的服务器JRE (link),我下载的文件是Server - JRE -7u45 linux-x64.tar.gz。当我提取这个文件时,我惊讶地发现了一个名为jdk1.7.0_45的目录,它包含了完整的java JDK。这不是我期望的JRE安装。这是怎么回事?

1 个解决方案

#1


22  

The answer is in the description of the packages on the parent page:

答案是对父页面上的包的描述:

JDK: (Java Development Kit). For Java Developers. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.

JDK:(Java开发工具包)。对于Java开发人员。包括一个完整的JRE和用于开发、调试和监视Java应用程序的工具。

Server JRE: (Server Java Runtime Environment) For deploying Java applications on servers. Includes tools for JVM monitoring and tools commonly required for server applications, but does not include browser integration (the Java plug-in), auto-update, nor an installer.

服务器JRE:(服务器Java运行时环境),用于在服务器上部署Java应用程序。包括用于服务器应用程序所需的JVM监视和工具的工具,但不包括浏览器集成(Java插件)、自动更新或安装程序。

JRE: (Java Runtime Environment). Covers most end-users needs. Contains everything required to run Java applications on your system.

JRE:(Java运行时环境)。能满足大多数用户的需求。包含在系统上运行Java应用程序所需的所有内容。

In the Server JRE case, "tools commonly required for server applications" includes some of the JDK tools. For instance, a web container (like Tomcat) needs to turn JSPs into compiled Java servlets, and this requires a callable Java compiler.

在服务器JRE中,“服务器应用程序通常需要的工具”包括一些JDK工具。例如,web容器(如Tomcat)需要将jsp转换为编译后的Java servlet,这需要一个可调用的Java编译器。

IMO, the benefit of using Server JRE is in what it DOES NOT include; i.e. the Java plugin which is a security nightmare (!) and auto-update which is bad for production service stability.

在我看来,使用服务器JRE的好处不包括在内;例如,Java插件是一个安全噩梦(!)和自动更新,这不利于生产服务的稳定性。

#1


22  

The answer is in the description of the packages on the parent page:

答案是对父页面上的包的描述:

JDK: (Java Development Kit). For Java Developers. Includes a complete JRE plus tools for developing, debugging, and monitoring Java applications.

JDK:(Java开发工具包)。对于Java开发人员。包括一个完整的JRE和用于开发、调试和监视Java应用程序的工具。

Server JRE: (Server Java Runtime Environment) For deploying Java applications on servers. Includes tools for JVM monitoring and tools commonly required for server applications, but does not include browser integration (the Java plug-in), auto-update, nor an installer.

服务器JRE:(服务器Java运行时环境),用于在服务器上部署Java应用程序。包括用于服务器应用程序所需的JVM监视和工具的工具,但不包括浏览器集成(Java插件)、自动更新或安装程序。

JRE: (Java Runtime Environment). Covers most end-users needs. Contains everything required to run Java applications on your system.

JRE:(Java运行时环境)。能满足大多数用户的需求。包含在系统上运行Java应用程序所需的所有内容。

In the Server JRE case, "tools commonly required for server applications" includes some of the JDK tools. For instance, a web container (like Tomcat) needs to turn JSPs into compiled Java servlets, and this requires a callable Java compiler.

在服务器JRE中,“服务器应用程序通常需要的工具”包括一些JDK工具。例如,web容器(如Tomcat)需要将jsp转换为编译后的Java servlet,这需要一个可调用的Java编译器。

IMO, the benefit of using Server JRE is in what it DOES NOT include; i.e. the Java plugin which is a security nightmare (!) and auto-update which is bad for production service stability.

在我看来,使用服务器JRE的好处不包括在内;例如,Java插件是一个安全噩梦(!)和自动更新,这不利于生产服务的稳定性。