Oracle的服务器JRE包含JDK? [英] Oracle's Server JRE Contains JDK?

查看:120
本文介绍了Oracle的服务器JRE包含JDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了针对Java SE 7的Oracle服务器JRE(链接)我下载的文件是 server-jre-7u45-linux-x64.tar.gz 。当我解压缩这个文件时,我惊讶地发现创建了一个名为 jdk1.7.0_45 的目录,其中包含完整的Java JDK。不是我对JRE安装的期望。这里发生了什么?

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?

推荐答案

答案在父页面上的包装说明中:

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


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

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

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

在Server JRE的情况下,通常使用工具服务器应用程序所需的包括 JDK工具的一些。例如,Web容器(如Tomcat)需要将JSP转换为已编译的Java servlet,这需要可调用的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.

IMO,使用Server JRE的好处是在它没有包括的内容;即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.

这篇关于Oracle的服务器JRE包含JDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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