title: managing multiple versions of JDK: invalid source release error
body: <p>I have jdk 1.6 and 1.7 installed.</p>
  
  <p>I have updated my JAVA_HOME variable to</p>
  
  <pre><code>C:\Program Files\Java\jdk1.6.0_24;C:\Program Files\Java\jdk1.7.0
  </code></pre>
  
  <p>But when I try to run java code.</p>
  
  <pre><code>&gt;javac -version
  javac 1.6.0_24
  
  &gt;java -version
  java version "1.7.0_09"
  
  &gt;javac -source 1.7.0 -target 1.7.0 Test.java
  javac: invalid source release: 1.7.0
  </code></pre>