title: javah NullPointerException while using ANT in Eclipse Indigo
body: <p>I'm using an ANT buildscript like so:</p>
  
  <pre><code>&lt;project basedir=".."&gt;
  &lt;property name="src" location="src"/&gt;
  &lt;property name="classes" location="classes" /&gt;
  &lt;property name="jnifiles" location="jnifiles" /&gt;
  
  &lt;target name="init"&gt;
      &lt;mkdir dir="${classes}" /&gt;
      &lt;mkdir dir="${jnifiles}" /&gt;
  &lt;/target&gt;
  
  &lt;target name="compile" 
      description="compile the source " &gt;
      &lt;javac srcdir="${src}" destdir="${classes}" includeantruntime="false" /&gt;
  &lt;/target&gt;
  
  &lt;target name="generate-jni"&gt;
      &lt;javah destdir="${jnifiles}" &gt;
          &lt;class name="com.example.ExecJNI" /&gt;
      &lt;/javah&gt;
  &lt;/target&gt;
  
  &lt;target name="clean"
      description="clean up" &gt;
      &lt;delete dir="${classes}"/&gt;
      &lt;delete dir="${jnifiles}"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p></p>
  
  <p>It goes through clean, init and compile just fine, but at generate-jni I get the following error:</p>
  
  <pre><code>generate-jni:
     [javah] Exception in thread "main" java.lang.NullPointerException
     [javah]  at com.sun.tools.javah.JavahTask.run(JavahTask.java:509)
     [javah]  at com.sun.tools.javah.JavahTask.run(JavahTask.java:335)
     [javah]  at com.sun.tools.javah.Main.main(Main.java:46)
  </code></pre>
  
  <p>Anyone have a clue what I'm doing wrong?</p>