oracle 下载哪一个:JDK 还是 JRE?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11037378/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 00:54:09  来源:igfitidea点击:

Which one to download: JDK or JRE?

oraclejava

提问by Martin Marino

Possible Duplicate:
Java SE 6 vs. JRE 1.6 vs. JDK 1.6 - What do these mean?

可能的重复:
Java SE 6 vs. JRE 1.6 vs. JDK 1.6 - 这些是什么意思?

I need to install the latest version of J2SE. So right now I am at the specified link below trying to figure out how to proceed. The author of the book I got says to get the updated version of J2SE. I found JSE7u5 which I guess is the updated version. But on the right side of the page(which is still the specified link below) JDK and JRE show up. Am I supposed to install both of these to crete the full JSE package? Also I am running on a Mac.

我需要安装最新版本的 J2SE。所以现在我在下面的指定链接上试图弄清楚如何继续。我得到的这本书的作者说要获得 J2SE 的更新版本。我找到了 JSE7u5,我猜它是更新版本。但是在页面的右侧(仍然是下面指定的链接)JDK 和 JRE 出现了。我是否应该安装这两个来构建完整的 JSE 包?我也在 Mac 上运行。

http://www.oracle.com/technetwork/java/javase/downloads/index.html

http://www.oracle.com/technetwork/java/javase/downloads/index.html

回答by kjp

Download the JDK if you want to do Java development. The JDK comes with the Java compiler (javac) which you will need for development. The JRE is the run time environment only - get this if you only want to runJava programs. If you get the JDK it comes with a JRE included so you don't need to get the JRE separately.

如果要进行 Java开发,请下载 JDK 。JDK 附带了开发所需的 Java 编译器 (javac)。JRE 只是运行时环境 - 如果您只想运行Java 程序,请获取它。如果您获得 JDK,它会附带一个 JRE,因此您无需单独获得 JRE。

回答by DwB

Just in case the other answers were not clear:

以防万一其他答案不清楚:

  1. You need the JRE to run java apps; JRE is an initialism of Java Runtime Environment.
  2. You need the JDK to develop java apps; JDK is an initialism of Java Development Kit. The JDK includes a JRE.
  3. The current terms for the standard and enterprise editions are Java SE (standard) and Java EE (enterprise).
  1. 您需要 JRE 才能运行 Java 应用程序;JRE 是 Java 运行时环境的缩写。
  2. 你需要JDK来开发java应用程序;JDK 是 Java Development Kit 的缩写。JDK 包括一个 JRE。
  3. 标准版和企业版的当前术语是 Java SE(标准版)和 Java EE(企业版)。

回答by Peter Lawrey

The Java Development Kit (JDK) is all you need.

您只需要 Java 开发工具包 (JDK)。

The JRE is all you need if you just want to run Java programs.

如果您只想运行 Java 程序,JRE 就是您所需要的。

The Java Platform hasn't been called J2SE for years. The last J2SE 5.0 was release in 2004 and has been End Of Life for a few years. http://en.wikipedia.org/wiki/Java_version_history

Java 平台多年来一直没有被称为 J2SE。最后一个 J2SE 5.0 是在 2004 年发布的,并且已经终止了几年。http://en.wikipedia.org/wiki/Java_version_history