From: Jim Menard Date: 2004-10-23T02:48:02+09:00 Subject: Re: Running ant from Ruby femol wrote: > Hello! > > I am crafting a script to automate some bat files I have.One of it steps consists of running ant (the Java build tool from Apache), but I can't seen to get that to work... > > I am new to Ruby so I can�t tell what I am doing wrong... > > I have tried system('ant') but it didnt't work...Then I tried system('java ant') but it gives a NoClassDefFoundError...probably missing some library...I tried something like > system("java -cp c:/apache-ant-1.6.1/lib ant") and system("java ant -lib c:/apache-ant-1.6.1/lib") but it didn't work also...Can anybody give me some light on the subject? If your current path doesn't include Ant, then you will have to specify the full path to the Ant executable. Try system("c:/apache-ant-1.6.1/bin/ant") Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm