Java SE 6 vs. JRE 1.6 vs. JDK 1.6 - 这些是什么意思? [英] Java SE 6 vs. JRE 1.6 vs. JDK 1.6 - What do these mean?
问题描述
我看到许多不同的Java术语浮出水面。我需要安装JDK 1.6。我的理解是Java 6 == Java 1.6。但是,当我安装Java SE 6时,我得到一个报告为版本11.0的JVM!谁可以解决这个疯狂?
I see many different Java terms floating around. I need to install the JDK 1.6. It was my understanding that Java 6 == Java 1.6. However, when I install Java SE 6, I get a JVM that reports as version 11.0! Who can solve the madness?
推荐答案
当你输入java -version时,你会看到三个版本号 - java版本(在我的,这是 1.6.0_07
),Java SE运行时环境版本(build 1.6.0_07-b06
),和HotSpot版本(在我的, build 10.0-b23,混合模式
)。我怀疑你看到的11.0是HotSpot版本。
When you type "java -version", you see three version numbers - the java version (on mine, that's "1.6.0_07
"), the Java SE Runtime Environment version ("build 1.6.0_07-b06
"), and the HotSpot version (on mine, that's "build 10.0-b23, mixed mode"
). I suspect the "11.0" you are seeing is the HotSpot version.
更新:HotSpot是(或曾经是,现在他们似乎用它来表示整个VM )内置于Java虚拟机的即时编译器。上帝只知道为什么Sun给它一个单独的版本号。
Update: HotSpot is (or used to be, now they seem to use it to mean the whole VM) the just-in-time compiler that is built in to the Java Virtual Machine. God only knows why Sun gives it a separate version number.
这篇关于Java SE 6 vs. JRE 1.6 vs. JDK 1.6 - 这些是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!