title: How to set JRE for ANT right in console parameter, not in Eclipse
body: <p>My question is the same, but I do not know how to set another JRE right in ant!
  I need to run scripts in console like "path-to-buil-xml/ant"</p>
  
  <p>I do that in Eclipse and I select JRE that I need, but how to set it in console ant?<br>
  What the name of parameter?</p>
  
  <p><a href="https://stackoverflow.com/questions/4041023/eclipse-change-jre-that-is-used-to-run-ant">eclipse: change jre that is used to run ant</a></p>
  
  <p>I need to build my project in the conditions when I do not have Eclipse.</p>
  
  <ol>
  <li>Now I can compile project with Eclipse when I change JRE from C:\Program Files\Java\jdk1.6.0_27 to another JRE 1.4. </li>
  <li>I can do the same without Eclipse but with changing JAVA_HOME to JRE 1.4. But on destination machine I can not change JAVA_HOME, because access denied!</li>
  </ol>
  
  <p>How to do that? </p>