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