java与jre冲突,JDK,JRE,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:

What is the difference between the so-called (as I've seen it) "Sun JDK", OpenJDK, and 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

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.

解决方案

Sun JDK is made by Sun, OpenJDK is a competing open source implementation. GCJ is the GNU java compiler.

Java 6 = Java 1.6 and JDK 6 = JDK 1.6

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值