One article to understand the relationship between JDK, JRE, and JVM

The focus of this article

If you want to use the Java language, then we need to use the JDK. We have already introduced how to download the JDK. In fact, after downloading the JDK, you are equivalent to owning the JDK, JRE, and JVM. This article will sort out the differences between the three. relationship between.

Relationship diagram of JDK, JRE, JVM

 As shown above, it is the relationship between the three, which can be considered as JDK>JRE>JVM

JDK

 

JDK directory

JDK (Java SE Development Kit), Java Standard Development Kit, which provides various tools and resources needed to compile and run Java programs, including Java compiler, Java runtime environment, and commonly used Java class libraries, etc. If we To develop Java programs, then we must install JDK.

As shown in the figure above, we can see that the bin in the JDK represents the compiler, and the jre file is the JRE

JRE

JRE (Java Runtime Environment) represents the Java runtime environment, which is used to interpret and execute Java bytecode files. If you just want to run the program, you only need to install JRE.

</

Guess you like

Origin blog.csdn.net/huanfeng_AI/article/details/131906943
Recommended