title: "echo %JAVA_HOME%" returns wrong path even though System JAVA_HOME Environment variable set
body: <p>As far as I can tell my System <code>JAVA_HOME</code> Variables are set correctly, but <code>echo %JAVA_HOME%</code> returns a wrong path (it is for an old version of Java) even after I restarted windows.</p>
  
  <p><a href="https://i.stack.imgur.com/0Cwtm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Cwtm.jpg" alt="Here are my environment settings"></a></p>
  
  <p>Another program also thinks <code>JAVA_HOME</code> is set to this wrong path.</p>
  
  <p>I'm using Windows 10.</p>