title: Java version does not change in windows command prompt
body: <p>I am trying to change my java version because of  compiler errors when running <code>mvn install</code> via the windows command prompt. 
  I changed the JAVA_HOME variable and made sure that it is referenced in the PATH variable (<strong>##EDIT##</strong>: had been done like this <code>%JAVA_HOME%\bin;%PATH%;</code>). </p>
  
  <p>When I open the command prompt in the folder where my pom.exe is located (using the Windows 7 <code>'Open command window here'</code> shortcut) and type <code>java -version</code> the unchanged java version is displayed.</p>
  
  <p>I made sure to close all instances of command prompts before starting a new one. 
  Strangely I discovered that when starting the command prompt via the <code>Run dialog</code> in the <code>start menu</code> (by typing <code>cmd</code>) the result of <code>java -version</code> is the desired version.</p>