MAP
MAP

Reputation: 59

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!

Upvotes: 1

Views: 599

Answers (2)

MAP
MAP

Reputation: 59

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.

Upvotes: 1

Eugene Ryzhikov
Eugene Ryzhikov

Reputation: 17369

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.

Upvotes: 0

Related Questions