I have a class that extends javax.annotation.processing.AbstractProcessor, which I’d like to run over some .java files with apt.
How do I specify the class name on the apt command-line (or in an ant apt task)? The command-line options I see, such as -factory expect an AnnotationProcessorFactory, not an AbstractProcessor.
I use javac 1.6.0_20.
The relevant options for my compiler are
I suspect you are using javac 1.5.*. That JDK does not work with AbstractProcessor (which was introduced in 1.6). The solution is to upgrade your JDK.