JDK:Java Development Kit
JRE: Java Runtime Environment
下图是从Oracle Java官网copy下来的,可以看到JDK其实包含了JRE。偷懒把官网上JDK和JRE的解释也copy下来翻一下,一目了然。
Java SE Runtime Environment (JRE)
The JRE provides the libraries, Java virtual machine, and other components necessary for you to run applets and applications written in the Java programming language. This runtime environment can be redistributed with applications to make them free-standing.
Java运行时环境:JRE提供库,java虚拟机以及其他用于跑java程序或者小控件所必需的部件。JRE可以随应用程序一起发布以保证其独立性。
Java SE Development Kit (JDK)
The JDK includes the JRE plus command-line development tools such as compilers and debuggers that are necessary or useful for developing applets and applications.
Java、JDK、JRE version相关知识可以参考:http://www.oracle.com/technetwork/java/javase/namechange-140185.html
reference: 点击打开链接