Hi, I'm having problems getting my Java program to run (it uses some third party .jar s). I can compile it fine but when I call my run target in ant it says it can't find the class that I told it run in the classpath. Here's what my build.xml looks like:
<project basedir="." default="build">
<property name="build" value="build" />
<property name="src" value="." />
<property name="lib" value="lib" />
<path id="classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${build}">
<include name="*.class" />
</fileset>
</path>
<target name="build">
<javac srcdir="${src}" destdir="${build}">
<classpath refid="classpath" />
</javac>
</target>
<target name="run">
<java classname="FirstClass">
<classpath refid="classpath" />
</java>
</target>
Does anyone know what I might be doing wrong?