title: Setting JAVA_HOME at Android SDK
body: <p>I have some conflicts with the <code>JAVA_HOME</code> configuration
  When I using the following code -</p>
  
  <pre><code>System.out.println(System.getenv("JAVA_HOME"));
  </code></pre>
  
  <p>I get - <code>C:\jdk1.6.0_23</code> which is the correct place.
  But, When I run Ant command on an Android build.xml, I got the following error message -</p>
  
  <blockquote>
    <p>C:\android-sdk-windows\tools\ant\main_rules.xml:361: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the
    classpath. Perhaps JAVA_HOME does not
    point to the JDK. It is currently set
    to "C:\jdk1.6.0_23\jre"</p>
  </blockquote>
  
  <p>How it can be resolved?</p>
  
  <p>Thanks,</p>
  
  <p>Eyal</p>