title: Switch between multiple java versions JDK1.8 and JDK10
body: <p>Once I install jdk 8 and jdk 10, jdk version 10 is getting configured as system JDK. Even though I change JAVA_HOME, PATH to jdk 8, system jdk does not changes. After changing path and JAVA_HOME if I check version of java in command prompt, it shows jdk 8. But if I double click an executable jar file it takes system jdk i.e. jdk 10.</p>
  
  <p>I tried changing registry to edit the system jdk paths and versions but it didn't work.</p>
  
  <p>From configure java I can only see jdk 10 as configured as system jdk and non editable.</p>
  
  <p>Please help if you are able to switch jdk versions as system jdk.</p>
  
  <p>Steps to replicate issue:</p>
  
  <ol>
  <li>install jdk 8 </li>
  <li>install jdk 10</li>
  <li>without uninstalling jdk 10 change java home and path to jdk 8 from command prompt check java version, it will show jdk 8
  
  <ol start="4">
  <li>Now try to run an executable jar by double click on desktop. It will take jdk 10. That is the issue.</li>
  </ol></li>
  </ol>
  
  <p><strong>NOTE:</strong> This is not a duplicate post. There are posts on switching between jdk6 or 7 or 8 but not with jdk 10. JDK 10 also does not comes with zip distribution from oracle, it comes only as installable file.</p>