title: How to set java path properly on windows 8 machine?
body: <p>I feel really bad I need to ask here but I've struggled with this issue since morning :)
  All I need is to set java 6 jdk to path. I set this to path in system environmental props:</p>
  
  <p><code>C:\Program Files\Java\jdk1.6.0_45\bin;C:\java\maven\apache-maven-3.2.5\bin</code> </p>
  
  <p>and this to JAVA_HOME: </p>
  
  <pre><code>C:\Program Files\Java\jdk1.6.0_45
  </code></pre>
  
  <p>However, java -version still prints out: java version "<code>1.8.0_25</code>".
  Thank you for any answer and have a nice rest of day :)</p>