Just because you have it on your shell's classpath, does not mean it is included in the classpath that is used to build by ant. There is a <property>
that can be set inside of a target
specified by ant.
Make sure all the jars you need are inside that classpath.