Hi Freinds,

I am learning Ant Tool,I developed a java program which is using an external jar file.I had set it in the classpath.I can run that program from my command line,but not able to run using ant.saying that it cannot find a class which is in that jar.i had not mentioned anything about the jar in the buld.xml.

Can any one tell where i went wrong..?


well, that would be the problem...
ANT sets up its own classpath for each task, disregarding (as any serious Java application does) the system classpath completely.
So if you don't tell ANT to use that jar, it won't use it and not find any classes in it.