Before downvoting or close-requesting this question please see that this question is about JDK 7 not 6, it has a second question 'Q2' which is not addressed by any duplicate thread and this question is about four not only two java.exe instances. Thank you!
I've just installed Oracle's Java SE JDK (64 bit) which resulted in the following directory layout, and somehow two JREs:
C:\Program Files\Java\
\jdk1.7.0_40
\jre
\jre7
I'm now the 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: Which one should I put into my search path to execute Java-based applications?
Q2: Do I need to put the Unlimited JCE Policy files just into the security sub-directory of the corresponding JRE in my search path or also into all others in order to work correctly?