title: Java new path not getting detected in Windows
body: <p>Due to lack of space I uninstalled Java from my C: Drive and instead installed in D: drive. While doing this, I re-configured the JAVA_HOME, Path environment variables. However, when I do echo %JAVA_HOME% it displays the old path i.e. <code>C:\Program Files\Java\jdk1.8.0_73</code>
  whereas the new path is <code>D:\Program Files\Java\jdk1.8.0_92</code></p>
  
  <p>Further, java -version and javac -version display the correct version of java which is 8.92 (older one was 8.73)</p>
  
  <p>Pls suggest how to change configure java correctly. I am using Windows Server 2008 R2</p>