title: Clojure: how to explicitly choose JVM in the environment with Leiningen/Lighttable
body: <p>In my Windows 7 (64 bits) environment, I have quite a few JVM available:</p>
  
  <pre><code>C:\Program Files (x86)\Java\j2re1.4.2_12\bin\client\jvm.dll
  C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
  D:\programs\Java\jdk1.7.0_45\jre\bin\server\jvm.dll
  D:\programs\Java\jre7\bin\server\jvm.dll
  </code></pre>
  
  <p>Currently, with Lighttable/Leiningen (I don't know which makes the choice, and how), it uses </p>
  
  <blockquote>
    <p>C:\Program Files (x86)\Java\j2re1.4.2_12\bin\client\jvm.dll</p>
  </blockquote>
  
  <p>But I really would like to try </p>
  
  <blockquote>
    <p>D:\programs\Java\jdk1.7.0_45\jre\bin\server\jvm.dll</p>
  </blockquote>
  
  <p>It's even more puzzling that when I type </p>
  
  <blockquote>
    <p>java -version</p>
  </blockquote>
  
  <p>I got the following:</p>
  
  <pre><code>D:\yushen&gt;java -version
  java version "1.7.0_45"
  Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
  Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
  </code></pre>
  
  <p>It seems that's what I want to have inside Lighttable/Leinengen. </p>
  
  <p>Could you show me how to make the explicit choice/configuration?</p>
  
  <p>I tried Google, but couldn't find some leads. </p>
  
  <p>Thanks a lot!</p>