最近在看许多javascript的东西,没有复习java的东西了(因为部门需求),于是我翻翻旧笔记。在电脑上安装环境。但当我安装的时候,我想真正的了解JRE何JDK的区别,因为一般初学者搭建环境的时候,都嚷嚷着安装JDK1.x或者JRE1.X的,这时候我想他们可能只是大概的知道这两个是JAVA运行所需的东西。所以说,我们开发人员只需要下载安装一个JDK即可。)

今天我就简单说说他们两个的区别。

英语学的好的可以看官方原文:

Java Platform Standard Edition 8 Documentation:

Oracle has two products that implement Java Platform Standard Edition (Java SE) 8: Java SE Development Kit (JDK) 8 and Java SE Runtime Environment (JRE) 8. JDK 8 is a superset of JRE 8, and contains everything that is in JRE 8, plus tools such as the compilers and debuggers necessary for developing applets and applications. JRE 8 provides the libraries, the Java Virtual Machine (JVM), and other components to run applets and applications written in the Java programming language. Note that the JRE includes components not required by the Java SE specification, including both standard and non-standard Java components.(原文大意:JDK是JRE的超集,即父集,JRE所包含的一切东西JDK里面都有,JRE只是JAVA程序运行时候所需要的环境,而我们开发者程序员来说还需要编译器,调试器等工具,API这些都是JRE所没有的。而JRE是包括JVM,还有库,组件等)

The following conceptual diagram illustrates the components of Oracle's Java SE products:

jdk的两个jre有啥区别(JAVAJRE与JDK的区别简洁)(1)

,