title: Choosing which Java executable to run on Windows
body: <p>I got applications that need different versions of Java to run properly. I noticed that <code>C:\ProgramData\Oracle\Java\javapath</code> gets highest precedence in the <code>PATH</code> variable. This folder contains <code>java.exe</code>, <code>javaw.exe</code>, and <code>javaws.exe</code>. These appear to be symbolic links that point to, in my case, executable targets in <code>C:\Program Files (x86)\Java\jre1.8.0_40\bin</code>.</p>
  
  <p>Without using mklink to modify the targets to use another JRE, is there a better way to change the JRE to use?</p>