What is the difference between JDK and JRE?

2018-12-31 07:13发布

What is the difference between JDK and JRE?
What are their roles and when should I use one or the other?

标签: java
20条回答
旧人旧事旧时光
2楼-- · 2018-12-31 07:40

Simply :

JVM is the virtual machine Java code executes on

JRE is the environment (standard libraries and JVM) required to run Java applications

JDK is the JRE with developer tools and documentation

查看更多
高级女魔头
3楼-- · 2018-12-31 07:41

enter image description here

JDK is a superset of JRE, and contains everything that is in JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications. JRE provides the libraries, the Java Virtual Machine (JVM), and other components to run applets and applications written in the Java programming language.

查看更多
登录 后发表回答