title: Should JAVA_HOME point to JDK or JRE?
body: <p>I pointed the <code>JAVA_HOME</code> to <code>C:\Program Files (x86)\Java\jre7</code>. It works fine. Afterwards, I unzipped ant and set up the environment variables related to Ant, I got the following error messages after typing <code>"ant -version"</code></p>
  
  <p><img src="https://i.stack.imgur.com/CZc7p.png" alt="image"></p>
  
  <p>I searched this forum. Looks like one solution is to point Java to JDK instead of JRE. I am not exactly sure whether this should be the solution. In other words, in general, which one should JAVA_HOME point to? JDK or JRE?</p>