Ant Automation of Netbeans
<p>I am trying to automate the build of a project, right now if I build using Ant it fails.</p>

<p>If I build with netbeans it is successful. (though sometimes I have to restart netbeans if I've made any changes like a svnrevert, or other things I've tried)</p>

<p>If I build with ant after the netbeans build it is successful.</p>

<p>Any pointers on how to troubleshoot this?</p>

<p>I've searched high and low for how to deal with this but have no idea. the build.xml and other build related files are autogenerated from netbeans as far as I can tell.</p>

<p>This is the error I am getting when I try building straight with Ant</p>

<pre><code>C:\Users\...\nbproject\xml_binding_build.xml:6: typedef class com.sun.tools.xjc.XJCTask can
t be found
 using the classloader AntClassLoader[]
</code></pre>

<p>EDIT:
The result with debug enabled doesn't really give any additional info besides a stack trace</p>