<!-- setting the classpath to search for already-compiled *.class files --> <javac source="1.5" target="1.5" srcdir="com/mindprod/affirm" sourcepath="${basedir}" classpath="${basedir}" debug="on" includeAntRuntime="false"> <!-- You should explicitly set the classpath, and you tell it not to use the AntRunTime classpath. --> <!-- A sign you don't have it set up correctly is Ant will repepatedly recompile source that is already compiled. -->