title: ant ${java.home} points to $JAVA_HOME/jre, not $JAVA_HOME
body: <p>When trying to compile a Javadoc taglet, which requires <code>$JAVA_HOME/lib/tools.jar</code>, I discovered that ant (version 1.8.4) sets <code>java.home</code> to <code>$JAVA_HOME/jre</code> rather than just <code>$JAVA_HOME</code>.  I verified this thusly:</p>
  
  <pre><code>&lt;echo&gt;${java.home}&lt;/echo&gt;
  &lt;echo&gt;${env.JAVA_HOME}&lt;/echo&gt;
  
  [echo] /usr/java/jdk1.7.0_21/jre
  [echo] /usr/java/jdk1.7.0_21
  </code></pre>
  
  <p>According to <code>ant -diagnostics</code>, there isn't any property like a <code>jdk.home</code>.  Thus, to use <code>tools.jar</code> I have to do:</p>
  
  <pre><code>&lt;classpath location="${java.home}/../lib/tools.jar"/&gt;
  </code></pre>
  
  <p>So, I have two questions:</p>
  
  <p>1) Is there something wrong with my setup of ant that's causing <code>java.home</code> to point to the JRE instead of the JDK?</p>
  
  <p>2) If this <em>is</em> the way ant is supposed to work, is using the <code>..</code> in my classpath the way I'm supposed to do things?  Or should I do <code>${env.JAVA_HOME}/lib/tools.jar</code>?  Or something else entirely?</p>