title: java.exe always point to the path of JRE but not JDK
body: <p>I have both jdk and jre installed on my windows 7.</p>
  
  <p>I have set the JAVA_HOME to </p>
  
  <pre><code>C:\Program Files\Java\jdk1.6.0_23
  </code></pre>
  
  <p>I have add </p>
  
  <pre><code>C:\Program Files\Java\jdk1.6.0_23\bin
  </code></pre>
  
  <p>to PATH.</p>
  
  <p>but the java.exe still pointing to my jre dir, which is </p>
  
  <pre><code>C:\Program Files\Java\jre6\bin
  </code></pre>
  
  <p>since when I run </p>
  
  <pre><code>java.exe -server
  </code></pre>
  
  <p>it complains </p>
  
  <pre><code>Error: no `server' JVM at `C:\Program Files\Java\jre6\bin\server\jvm.dll'.
  </code></pre>
  
  <p>can anyone tell me what else do I need to set?</p>