java - JDK installation prompts to install JRE again. What's the difference between jre outside and inside JDK folder? -


when install jdk, after installation of jdk prompts let choose location install jre of save version. but, when jdk installation done, can see jre folder inside jdk folder. example, if install jdk in:

c:\program files\java\jdk8 

we can see:

c:\program files\java\jdk8\jre 

and if choose save jre at:

c:\program files\java\jre8 

we can find folder contains (nearly) same content jre inside jdk folder. difference between these two?

as oracle installation manual suggests in section "private versus public jre":

private versus public jre

installing jdk installs private jre , optionally public copy. private jre required run tools included jdk. has no registry settings , contained entirely in jre directory (typically @ c:\program files\jdk1.8.0\jre) location known jdk. on other hand, public jre can used other java applications, contained outside jdk (typically @ c:\program files\java\jre1.8.0), registered windows registry (at hkey_local_machine\software\javasoft), can removed using add/remove programs, might registered browsers, , might have java.exe file copied windows system directory (which make default system java platform).

so, have same in these 2 directories, it's safe use public one, or outer one. if there's no outer one, can use inner 1 without (programmatical) problem.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -