title: Unable to change Java Version in windows
body: <p>Previously I am using <strong>Java 1.8</strong> in my  machine. But now i need to use <strong>Java 1.6</strong>. So I changed the below values in <strong>system environment variables</strong>.</p>
  <p><em><strong>JAVA_HOME</strong></em></p>
  <blockquote>
  <p>U:\POC\jdk1.6.0_31</p>
  </blockquote>
  <p><em><strong>PATH</strong></em></p>
  <blockquote>
  <p>U:\POC\jdk1.6.0_31\bin\    <em><strong>or</strong></em>     %JAVA_HOME%/bin</p>
  </blockquote>
  <p>Also I restarted my system</p>
  <p>Even after that it is displaying java version as 1.8 in my command prompt.</p>
  <p><a href="https://i.stack.imgur.com/c7WEN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c7WEN.png" alt="command Prompt" /></a></p>
  <p>Can anyone advice on how to resolve this issue?</p>