On the Java CAPS Uploader, click the Download tab.
Click Adapter's Third Party Library Installer and extract it into a working directory.
Set the environment variable ANT_HOME to point to the home directory of your ANT installation. For example:
set ANT_HOME=C:\JavaCAPS6\netbeans\java2\ant
Set the environment variable JAVA_HOME to point to your JDK installation. For example:
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
Set your PATH to include the bin directory of your ANT installation.
set PATH=C:\JavaCAPS6\netbeans\java2\ant