I always include a "prjrun" task in my projects that create a shell-script/batch-file for executing Java using the current project CLASSPATH settings.
<target name="prjrun"> <pathconvert property="project.path" targetos="windows" refid="project.class.path"/> <filter token="project.path" value="${project.path}"/> <copy tofile="prjrun.cmd" file="prjrun.cmd.template" filtering="true"/> </target> Having a template shell-script/batch-file looking like @setlocal set [EMAIL PROTECTED]@ java %* @endlocal that eliminates the need for manual CLASSPATH settings. That is especially useful if you have CLI-tools like Java2WSDL