java - Oracle JDK installs two JREs? -


before downvoting or close-requesting question please see question jdk 7 not 6, has second question 'q2' not addressed duplicate thread , question four not two java.exe instances. thank you!


i've installed oracle's java se jdk (64 bit) resulted in following directory layout, , somehow two jres:

c:\program files\java\     \jdk1.7.0_40         \jre     \jre7 

i'm proud owner of four java.exe executables:

c:\program files\java\jdk1.7.0_40\bin\java.exe c:\program files\java\jdk1.7.0_40\jre\bin\java.exe c:\program files\java\jre7\bin\java.exe c:\windows\system32\java.exe 

q1: 1 should put search path execute java-based applications?

q2: need put unlimited jce policy files security sub-directory of corresponding jre in search path or others in order work correctly?

while installing jdk have copy of jre installed automatically. need not install copy of jre separately. yet directory structure.

the copy of jre in jdk folder is private copy of jre.

installing jdk installs private java se runtime environment (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.6.0\jre) location known jdk. on other hand, public jre can used other java applications, contained outside jdk (typically @ c:\program files\java\jre1.6.0), registered windows registry (at hkey_local_machine\software\javasoft), can removed using add/remove programs, might or might not registered browsers, , might or might not have java.exe copied windows system directory (making default system java platform or not)."


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -