Buildfile: build.xml
compile:
[mkdir] Created dir: C:\...\build\classes
[javac] Compiling 1 source file to C:\...\build\classes
jar:
[mkdir] Created dir: C:\...\build\jar
[jar] Building jar: C:\...\build\jar\HelloWorld.jar
run:
[java] Hello World
BUILD SUCCESSFUL
AntRunner is an easy to use and free GUI application for running Ant build files. It's written for .NET so it should run on any Windows Platform. For Ant build tasks it uses Apache Ant which is included in the setup file.
For the current version of AntRunner, you will also need a JDK installed on your system, version 1.2 or later required, 1.5 or later strongly recommended. The later the version of Java , the more Ant tasks you get.
The AntRunner makes use of two environment variables - CLASSPATH and JAVA_HOME. Ensure that JAVA_HOME variable is set, and that it does not have quotes (either ' or ") and it does not end with \ or with /. CLASSPATH should be unset or empty.
For more information or troubleshooting see: http://ant.apache.org/manual/install.html
Demo build.xml file (for downloading this file, click right mouse button and select "Save Target As...")
For more information about build.xml files see: http://ant.apache.org/manual/using.html