Java 1.6 与 JDK 6 相同吗?

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

Is Java 1.6 the same as JDK 6?

java

提问by cchampion

I'm taking a computer science course and the syllabus says download java 1.6. I don't find a java 1.6, everything says JDK 6. When I googled java 1.6 I found this link:

我正在学习计算机科学课程,教学大纲说下载 java 1.6。我没有找到 java 1.6,一切都说 JDK 6。当我在 google 上搜索 java 1.6 时,我找到了这个链接:

http://java.sun.com/javase/downloads/index.jsp

http://java.sun.com/javase/downloads/index.jsp

Is this what he's refering to as java 1.6? I downloaded JDK 6 update 17 and netbeans 6.8. I'll email the instructor and ask him this question, but I bet I'll get quicker answer here and I'm ready to get started! Thanks!

这就是他所说的 java 1.6 吗?我下载了 JDK 6 update 17 和 netbeans 6.8。我会通过电子邮件向讲师询问这个问题,但我敢打赌我会在这里得到更快的答复,我已经准备好开始了!谢谢!

update: Thanks for the quick answers everyone! I'm rolling along now!

更新:感谢大家的快速回答!我现在滚!

采纳答案by Jared Russell

Yes, they're the same. See this pagefor a more detailed explanation of the version numbering.

是的,它们是一样的。有关版本编号的更详细说明,请参阅此页面

回答by Michael Brewer-Davis

They are the same. Here is Sun's discussionof that and other naming discrepancies.

他们是一样的。这是Sun对此和其他命名差异的讨论

回答by Joachim Sauer

No, but yes.

不,但是是的。

JDK means Java Development Kit 6.

JDK 的意思是 Java Development Kit 6。

It's an implementation of the Java SE 6 platform as specified by JSR 270together with a set of development tools (the implementation of the platform without the development tools is called the JRE: Java Runtime Environment).

它是JSR 270指定的 Java SE 6 平台和一组开发工具的实现(没有开发工具的平台实现称为 JRE:Java 运行时环境)。

For some reason the internal version number of the JDK 6 is "1.6" (or 1.6.0_17 for example). But that's onlythe internal version number of that piece of software. The Java platform itself is simple "Java SE 6" (no "1." anywhere to see).

出于某种原因,JDK 6 的内部版本号是“1.6”(例如 1.6.0_17)。但这只是该软件的内部版本号。Java 平台本身就是简单的“Java SE 6”(无处可见的“1.”)。

So to re-iterate:

所以再次重申:

  • "Java 6" usually means "Java SE 6"
  • "Java SE 6" is the "Java Standard Edition 6 platform", which is a specification of what the platform looks like
  • "JDK 6" is the "Java Development Kit 6", which is a development kit for Java SE 6
  • The internalversion number of the software components that make up JDK 6 is "1.6.x"
  • "JDK 1.6" doesn't exist, strictly speaking, but is usually written to refer to JDK 6
  • "Java 1.6" doesn't exist, strictly speaking, but is usually written to refer to Java SE 6
  • “Java 6”通常表示“Java SE 6”
  • “Java SE 6”即“Java Standard Edition 6 平台”,它是平台外观的规范
  • “JDK 6”即“Java Development Kit 6”,是Java SE 6的开发工具包
  • 构成 JDK 6 的软件组件的内部版本号是“1.6.x”
  • 严格来说,“JDK 1.6”不存在,但通常是指JDK 6
  • 严格来说,“Java 1.6”不存在,但通常是指 Java SE 6

So if you're told to install "Java 1.6" for a software development course, then the JDK 6 is definitely the correct piece of software to install.

因此,如果您被告知要为软件开发课程安装“Java 1.6”,那么 JDK 6 绝对是要安装的正确软件。

Update:yes, all of the above is still correct after Oracle bought Sun and Java 7 (specified in JSR 336) was released. Java 7 stilluses "1.7.0" as the internalversion number.

更新:是的,在 Oracle 购买 Sun 和 Java 7(在JSR 336 中指定)发布后,上述所有内容仍然正确。Java 7仍然使用“1.7.0”作为内部版本号。

回答by Pascal Thivent

Yes, Sun makes use of dual naming convention for the same thing. One naming convention if for the product and one is for the developer. The official documentationmentions:

是的,Sun 对同一事物使用双重命名约定。一种命名约定用于产品,一种用于开发人员。官方文档提到:

Both version numbers (1.6.0 and 6) are used to identify this release of the Java Platform. Version 6 is the product version, while 1.6.0 is the developer version. The number 6 is used to reflect the evolving level of maturity, stability, scalability and security of Java SE.

两个版本号(1.6.0 和 6)都用于标识 Java 平台的此版本。版本 6 是产品版本,而 1.6.0 是开发者版本。数字 6 用于反映 Java SE 的成熟度、稳定性、可扩展性和安全性不断发展的水平。

See J2EE or JEE, Java 5 or Java 1.5 - Is SUN Crazy?for more on this madness.

请参阅J2EE 或 JEE、Java 5 或 Java 1.5 - SUN 疯了吗?有关这种疯狂的更多信息。

Madness...? This is Sun!

疯狂...?这是孙!