Run a Java Program from an Ant Build File
===

So I wrote an ant build.xml file where I take the class files from two Java programs, one that extends the other, package them up into two separate jar files, and then, launches them.

        
	<java classname="org.owasp.webscarab.Main">
                 <classpath>
                      <pathelement location="${mainDir}"/>
                      <pathelement path="${Main-Class}"/>
                 </classpath>
           </java>
	
Whenever I invoke ant, it says that "org.owasp.webscarab.Main" can not be found. I can post the rest of the build.xml file if needed but it's really just this part that I'm confused about. I'm pretty sure that I have the classname right but my biggest problem is figuring out what goes in for location and path. Right now I just have dummy variables.

EDIT: Here's the whole file.

    <?xml version="1.0"?>
    <project default="dist" name="webscarab">
	<description>PegaFuzz</description>
	<property name="pegaFuzzClassFiles" location="..\Simple\trunk\dev\PegaFuzz\bin\" />
	<property name="webScarabClassFiles" location="..\Simple\trunk\dev\webscarab\build\" />
	<property name="buildDir" location=".\build" />
	<property name="distDir" location=".\dist" />
	<property name="mainDir" location="..\Simple\trunk\dev\webscarab\src\" />
	<target name="init">
		    <tstamp/>
		    <mkdir dir="${buildDir}"/>
		    <mkdir dir="${distDir}"/>
	</target>
	<target name="dist" depends="init">
		<jar destfile="${distDir}/package-pega-${DSTAMP}.jar" basedir="${pegaFuzzClassFiles}"/>
		<jar destfile="${distDir}/package-web-${DSTAMP}.jar" basedir="${webScarabClassFiles}"/>
		<java classname="org.owasp.webscarab.Main">
         <classpath>
           <pathelement location="${mainDir}"/>
           <pathelement path="${Main-Class}"/>
         </classpath>
       </java>
	</target>
    </project>