title: java_home not being set properly
body: <p>I have 2 Java installed on my machine. 1.5 and 1.6. For the project, I need 1.5. I have set all of my path variables to appropriate i.e.</p>
  
  <pre><code>echo %JAVA_HOME%
  &lt;PATH_TO_1.5_JDK&gt;
  </code></pre>
  
  <p>which is what i want .. but when i do </p>
  
  <pre><code>java -version
  java version "1.6.0_33"
  Java(TM) SE Runtime Environment (build 1.6.0_33-b05)
  Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
  </code></pre>
  
  <p>why java v 6 is being picked for <code>java -version</code> command ? </p>
  
  <p><strong>UPDATED</strong>
  I have already checked the <code>%PATH%</code> variable and the only java version that appears in path is 1.5. I am referring to <code>SYSTEM VARIABLES</code> variable here and I am using Win7</p>