2011-08-26 63 views

回答

4

我使用javac 1.6.0_20。

我的編譯器相關的選項有

-proc:{none,only}   Control whether annotation processing and/or compilation is done. 
    -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process 
    -processorpath <path>  Specify where to find annotation processors 
    -d <directory>    Specify where to place generated class files 
    -s <directory>    Specify where to place generated source files 

我懷疑你是使用javac 1.5。*。該JDK不適用於AbstractProcessor(在1.6中引入)。解決方案是升級您的JDK。

相關問題