I am new to Netbeans and new to (less than a year) for programming Ruby. I'm getting more frustrated with Eclipse and Ruby - it doesn't look like a Mac at all! - and decided, based on the recommendation in "Using JRuby", to try Netbeans.
After several blog posts, specifically the Geertjan post , everything is set up for me (I think), but I keep getting this error:
Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
The relevant part (again, I think) is build.xml:
<taskdef resource="net/sf/antcontrib/antlib.xml"> <classpath> <pathelement location="${binaries.cache}/943CD5C8802B2A3A64A010EFB86EC19BAC142E40-ant-contrib-1.0b3.jar"/> </classpath> </taskdef>
binaries.cache points to /Users/carolyn/.hgexternalcache; jar file, I just can't find anywhere. I asked on the Geertjan blog, and I thought I was asking here. I tried different things - it took me a while to figure out that Netbeans was using its own Java and Ant! - and $ ANT_HOME is undefined, but nothing I'm trying seems to work. I know that I missed something simple, but I canβt understand what it can be!
I am running OS X Mountain Lion with Netbeans 7.2 (build 201207171143). I uploaded NB Ruby to "~ / Downloads / mercurial / NB Ruby".
Thank you in advance for your help! :-)
Thanks @TarjusArjun!
Once you find ant -contrib-1.0b3.jar ( I found it here ), you need to copy it to:
/Applications/NetBeans/NetBeans 7.2.app/Contents/Resources/NetBeans/java/ant/lib
If your installation is similar to mine, you get a bunch of new errors and a failed build, but this is another problem.
(Thanks, Jav_Rock, for editing the link. :-) I completely forgot about it!)