Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » APT: Adjust classpath for an annotation processor
icon5.gif  APT: Adjust classpath for an annotation processor [message #524227] Wed, 31 March 2010 05:01 Go to next message
Eclipse UserFriend
Hi!

I am currently playing around with annotation processors and I am wondering.....how can I configure a classpath for the processor?

I read that -classpath and -sourcepath are automatically passed to the processors...but still, one of my processors does not work (NoClassDefFoundError). Reason is, I am using a third party lib to generate some sourcecode.

I am pretty sure, others already did that before & got it working...so obviously I am doing something wrong here Wink. I already tried adding the library to the build path of the project that uses the processor.....but the error still remains... Sad.

Ah and one more thing - the processor is not a plugin, its just a simple jar.

Many thanks!
Re: APT: Adjust classpath for an annotation processor [message #524323 is a reply to message #524227] Wed, 31 March 2010 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Matt wrote:
> Hi!
>
> I am currently playing around with annotation processors and I am
> wondering.....how can I configure a classpath for the processor?
>
> I read that -classpath and -sourcepath are automatically passed to the
> processors...but still, one of my processors does not work
> (NoClassDefFoundError). Reason is, I am using a third party lib to
> generate some sourcecode.
>
> I am pretty sure, others already did that before & got it working...so
> obviously I am doing something wrong here ;). I already tried adding the
> library to the build path of the project that uses the processor.....but
> the error still remains... :(.
>
> Ah and one more thing - the processor is not a plugin, its just a simple
> jar.

Add the third-party jar to the annotation processor factory path. It's fine to
include non-processors on the factory path.
Re: APT: Adjust classpath for an annotation processor [message #524485 is a reply to message #524323] Thu, 01 April 2010 03:05 Go to previous messageGo to next message
Eclipse UserFriend
Ah! My fault...I didn't try the obvious Wink.

Many thanks!
Re: APT: Adjust classpath for an annotation processor [message #524919 is a reply to message #524485] Sun, 04 April 2010 00:07 Go to previous message
Eclipse UserFriend
Matt wrote:
> Ah! My fault...I didn't try the obvious ;).

Nothing about APT is obvious :-(
Previous Topic:Could not find main
Next Topic:BuildPath 'JRE System Library' .jars clutter Project&PackageExplorer
Goto Forum:
  


Current Time: Sun Mar 23 05:09:38 EDT 2025

Powered by FUDForum. Page generated in 0.17413 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top