> I tried putting default constructor with no arguments then also same issue.
> Please advice.
Constructors have nothing to do with this. Your "ClassA" class will never get
instantiated. Instead the static main method will be called.
> <target name="run" depends="compile">
> <java classname="ClassA" debug>
> <classpath path="${build}"/>
> </java>
What is this "debug" here. According to the ant docs the java target has no such
attribute. I don't know if it's even legal XML to write attributes without
values. Anyway, try removing it.
However, what I don't understand is why ant doesn't complain about this right in
the beginning when validating the build.xml file.
Ville Oikarinen