title: Could not load definitions from resource net/sf/antcontrib/antlib.xml, netbeans
body: <p>I'm new to Netbeans, and newish (less than a year) to Ruby programming. I've been getting increasingly frustrated with Eclipse and Ruby - it's not at all Mac-like! - and decided, based on the recommendation in "Using JRuby", to try Netbeans. </p>
  
  <p>Following a bunch of blog posts, notably Geertjan's <a href="https://blogs.oracle.com/geertjan/entry/ruby_in_netbeans_ide_7">post</a>, I've got everything configured (I think), but I keep getting this error: </p>
  
  <pre><code>Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
  </code></pre>
  
  <p>The relevant part (again, I think) of build.xml is:</p>
  
  <pre><code>&lt;taskdef resource="net/sf/antcontrib/antlib.xml"&gt;
      &lt;classpath&gt;
          &lt;pathelement location="${binaries.cache}/943CD5C8802B2A3A64A010EFB86EC19BAC142E40-ant-contrib-1.0b3.jar"/&gt;
      &lt;/classpath&gt;
  &lt;/taskdef&gt;
  </code></pre>
  
  <p>binaries.cache points to /Users/carolyn/.hgexternalcache; the jar file, I just can't find anywhere. I've asked on Geertjan's blog, and I thought I'd ask here as well. I've tried a variety of different things - it took me awhile to figure out that Netbeans uses its own Java and Ant! - and $ANT_HOME isn't defined, but nothing I try seems to work. I know I'm missing something simple, but can't figure out what it might be! </p>
  
  <p>I'm running OS X Mountain Lion, with Netbeans 7.2 (build 201207171143). I downloaded NB Ruby to "~/Downloads/mercurial/NB Ruby".</p>
  
  <p>Thanks in advance for any help! :-)</p>
  
  <p>Thanks @TarjusArjun!</p>
  
  <p>Once you've found ant-contrib-1.0b3.jar (<a href="http://www.findjar.com/jar/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar.html?all=true">I found it here</a>), it needs to be copied to:</p>
  
  <pre><code>/Applications/NetBeans/NetBeans 7.2.app/Contents/Resources/NetBeans/java/ant/lib
  </code></pre>
  
  <p>If your install is anything like mine, you then get a bunch of new errors and a failed build - but it's a different problem.</p>
  
  <p>(Thanks, Jav_Rock, for the link edit. :-) I totally forgot about doing that!)</p>