I have the following build.xml
:
There are two ways to run a java program. Using the "jar" option is the most convenient and is called an executable jar, however in order to make it work you need to specify both the Main class and classpath in the manifest file as follows:
For a more detailed answer on how to do this see:
Execute Java programs in a consistent environment