Using a third party lib in an annotation processor with eclipse
maybe I do not see the wood for the trees, but I made an AnnotationProcessor and embedded it in eclipse. Works fine so far....but what if I need some 3rd party libs? I don't see any option to add those jars to the classpath. How/Where do 开发者_C百科I configure that in eclipse?
Many many thanks!
Just found the solution thanks to the eclipse forum :). Third party libraries have to be added to the factory path ... just like the jar, which includes the processor.
Right click on your project. Select "Build Path"/"Configure Build Path". When dialog appears choose "Libraries" tab. Here you can add almost anything you want to the class path.
精彩评论