开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜