I just want to run the main() method of the Java class by double-clicking on it the ant task in eclipse ant - view. My problem is that I do not know how to write the ant file correctly. My ant file should be analyzeDatabase.xml .
I tried something like this, but always fails:
<?xml version="1.0" ?> <project name="DBAnalyzer" default="run" basedir="."> <target name="run" description="runs dbanalyzer"> <java classname="DBAnalyzer"> <arg value="-h"/> </java> </target> </project>

MรคxL source share