The taskdef ant task cannot be found
问题 All - I'm following the most simplest instructions on this page: http://ant.apache.org/manual/develop.html However, when I try to execute the target "main" I get this error in netbeans: taskdef class dec102012.MyAntTask cannot be found using the classloader AntClassLoader[] But this error does not make sense because my new Java class that extends "Task" looks like this: package dec102012; import org.apache.tools.ant.BuildException; public class MyAntTask extends org.apache.tools.ant.Task{