JDK,JRE,Java:版本混乱! [英] JDK, JRE, Java: Version Confusion!

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

问题描述

虽然我还不是真正的Java开发人员,但我觉得我现在应该知道这一点,但我仍然很困惑。我的问题有两个部分:

Although I'm not a real Java developer (yet), I feel like I should know this by now, but I'm still very confused. My question has two parts:


  1. 所谓的(我见过的)有什么区别Sun JDK,OpenJDK和GCJ

在不同的时间,我看到以下每一个都被抛出,使它成为现实非常混淆,以了解哪些版本号实际适用于什么。有人可以帮我解决这个问题吗?

At various times, I've seen each of the following thrown around, making it very confusing to understand which version numbers actually apply to what. Can someone please help me sort this out?


  • Java 6

  • Java 1.6

  • JDK 6

  • JDK 1.6

  • JRE 1.6

  • JVM 11.0

  • Java 6
  • Java 1.6
  • JDK 6
  • JDK 1.6
  • JRE 1.6
  • JVM 11.0

注意:我确实理解JDK(Java开发工具包)和Java运行时环境。虽然我知道JVM是什么/做什么,但我并不完全清楚JRE和JVM之间的区别。

Note: I do understand the difference between the JDK (Java Development Kit) and the Java Runtime Environment. I'm not totally clear on the difference between the JRE and JVM however, although I know what the JVM is/does.

推荐答案


  1. Sun JDK由Sun制作,OpenJDK是一个竞争的开源实现。 GCJ是GNU java编译器。

  2. Java 6 = Java 1.6和JDK 6 = JDK 1.6

详情项目1
http://en.wikipedia.org/wiki/OpenJDK
https://stackoverflow.com/questions/1977238/why-should-i-use-the-sun-jdk-over-the-openjdk-or-vice-versa

http://en.wikipedia.org/wiki/GNU_Compiler_for_Java

GCJ如何与Sun JDK / OpenJDK相关?
我没有直接关系。 GCJ是一个单独的项目。
使用一个JDK而不是另一个JDK有什么优点?
如果重新分发Sun JDK,则可能会出现许可问题。我个人更加信任Sun JDK,因为它的稳定性。
OpenJDK不是Sun项目吗?是的,不是。这是一个社区项目。

How does the GCJ relate to the Sun JDK/OpenJDK? There is no direct relation that I am aware of. GCJ is a separate project. What are the merits of using one JDK over the other? Licensing issues can occur if you redistribute the Sun JDK. Personally I put more trust in the Sun JDK, because of its stability. Isn't OpenJDK a Sun project? Yes and no. It's a community project.

这篇关于JDK,JRE,Java:版本混乱!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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