Differences between JRE, JDK, and JVM in Java, javajrejdkjvm

Source: Internet
Author: User

Differences between JRE, JDK, and JVM in Java, javajrejdkjvm
1. Basic concepts of the three: 2. Differences between the three:

1. JDK is intended for developers and JRE is intended for users who use JAVA programs;

2. After JDK is installed, two sets of JRE will be generated, one is on the outside and the other is on the JDK. If it is only a Java User, only the JRE directory at the outermost layer will be available. JDK contains the built-in JRE.

3rd, the two sets of jress are used at the bottom. in JDK, java.exe first looks for them from its own directory, and then searches for the parent directory. If not, it goes to the Registry. You can specify a separate JRE or JDK when specifying a JRE.

4. The JVM cannot execute the class file separately. when interpreting the class, the JVM needs to call the library lib required for interpretation. In the jdk jre directory, there are two folders bin and lib. When bin is considered to be jvm, lib is the class library required for jvm work, jvm and lib are combined as jre (jvm + lib = JRE ).

To be continued...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.