apt: invalid flag: --help Usage: apt where apt options include: -classpath Specify where to find user class files and annotation processor factories -cp Specify where to find user class files and annotation processor factories -d Specify where to place processor and javac generated class files -s Specify where to place processor generated source files -source Provide source compatibility with specified release -version Version information -help Print a synopsis of standard options; use javac -help for more options -X Print a synopsis of nonstandard options -J Pass directly to the runtime system -A[key[=value]] Options to pass to annotation processors -nocompile Do not compile source files to class files -print Print out textual representation of specified types -factorypath Specify where to find annotation processor factories -factory Name of AnnotationProcessorFactory to use; bypasses default discovery process See javac -help for information on javac options. warning: The apt tool and its associated API are planned to be removed in the next major JDK release. These features have been superseded by javac and the standardized annotation processing API, javax.annotation.processing and javax.lang.model. Users are recommended to migrate to the annotation processing features of javac; see the javac man page for more information.