简体   繁体   中英

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 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM