[Java Development Issue-3] The difference between the JRE in the JDK and the outside JRE

Source: Internet
Author: User

Problem: The difference between the JRE in the JDK and the outside JRE

Analysis: If we install the JDK, then there will be C:\Program Files (x86) \java\jdk1.8.0_05 folder on our computer, there is a JRE folder in this folder. Then we install the JRE, and at this point we have the C:\Program Files (x86) \java\ Jre8 folder in our computer .

By comparing the contents of the JRE and Jre8 folders, we find that the basic is the same, then what is the difference between the two folders?

Let's take the JRE as a public JRE for our own Jdk-jre,jre8.

The main difference between the jdk-JRE and the public JRE is that the jdk-JRE has one more server VM execution option.

The sever uses a different VM virtual machine than the client. If the computer runs a Java program, the client VM is called automatically. However, if you are developing a Java program using a server VM (the server VM starts longer, consumes more memory, but performs better after startup for development).


In other words: The public JRE is for ordinary PC users, if you install a Java program, the Java program will invoke the JRE (Java Runtime Environment) when it starts to run, if you are a Java developer, Then you need to install the JDK (Java Development Kit), and when you develop debugging Java programs, you invoke the JRE inside the JDK.

[Java Development Issue-3] The difference between the JRE in the JDK and the outside JRE

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.