How to set the Path and JAVA-HOME of JDK 1.5 when we are already using JDK 1.6?
<p>I'm using JDK 1.6 at the moment, but I need to use JDK 1.5 now. I have installed the JDK 1.5. I really don't have an idea to set the path. I tried by setting this in the Environment variables:</p>

<pre><code>JAVA_HOME = C:\Program Files\Java\jdk1.5.0
PATH = C:\Program Files\Java\jdk1.5.0\bin
</code></pre>

<p>But still when I check the version in the command prompt it says JDK 1.6.</p>

<p>How do I change it?</p>
