Oh, I am sorry. The question is not discuss about JDK and JRE. But I cannot express clearly in my title. So I try to explain in here.
I want to know the difference between two folders!
C:\Program Files\Java\jdk1.8.0_161\jre
and C:\Program Files\Java\jre1.8.0_161
I am new to JAVA. I have installed the JDK in my Windows 10. When I install jdk, there were two steps. After double click jdk-8u161-windows-x64.exe
, two steps as follows:
Step 1: install jdk. (In C:\Program Files\Java\jdk1.8.0_161
)
Step 2: install jre. (In C:\Program Files\Java\jre1.8.0_161
)
But when I open the jdk1.8.0_161
folder. I can also find a jre
folder.
Could anyone tell me the difference between C:\Program Files\Java\jdk1.8.0_161\jre
and C:\Program Files\Java\jre1.8.0_161
?
If they are the same, why is jre
installed in the installation process of jdk
? Are they duplicated?
In other world, is Step 2 needless?
The JRE within the JDK C:\Program Files\Java\jdk1.8.0_161\jre
(also referenced as private JRE) is used by the JDK tools. The JRE outside C:\Program Files\Java\jre1.8.0_161
(also referenced as the public JRE) should is meant to be used by the Java applications.
private JRE
public JRE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With