Given such Ant
script, it runs the main
class in SparkTest.
<target name="makeQuery" depends="makeJar">
<java classname="sparkDemo.SparkTest" fork="true" failonerror="true">
<classpath>
<pathelement location="${basedir}/SparkDemo.jar"/>
</classpath>
</java>
</target>
I got such error:
makeQuery:
[java] Error: Could not find or load main class sparkDemo.SparkTest
What's the issue? The SparkDemo.jar
have dependency on several other jar files, then how to set the dependency in Java
target?