下载哪一个:JDK还是JRE? [英] Which one to download: JDK or JRE?

查看:142
本文介绍了下载哪一个:JDK还是JRE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Java SE 6 vs. JRE 1.6 vs. JDK 1.6 - 这些意味着什么?

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

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.

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

推荐答案

如果要进行Java 开发,请下载JDK。 JDK附带了Java编译器(javac),您需要进行开发。
JRE仅适用于运行时环境 - 如果您只想运行 Java程序,请执行此操作。
如果你得到JDK,它附带一个JRE,所以你不需要单独获得JRE。

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 run Java programs. If you get the JDK it comes with a JRE included so you don't need to get the JRE separately.

这篇关于下载哪一个:JDK还是JRE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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