- NOTE: The question is not about the difference between JDK and JRE.
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
Describe in details:
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?