Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How can I specify particular annotation processors to run in javac?
How can I specify particular annotation processors to run in javac? [message #1814999] Tue, 24 September 2019 03:02 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 813
Registered: July 2009
Senior Member
I'm investigating the "Checker Framework", to see if I can get it to work inside Eclipse, not just from Maven (some trouble with that also). It uses annotation processors. It requires specifying the processors I want to run.

In the "Annotation Processing" section underneath "Java Compiler" in project properties, I can add references to the jars that contain the annotation processors. Since I'm building this from Maven, I referenced the two required jars relative to the "M2_REPO" variable, like "M2_REPO/org/checkerframework/checker-qual/2.11.0/checker-qual-2.11.0.jar". I then looked for where I set the processors I want to run. The only thing that comes close to that comes from the "Advanced" button. This brings up a dialog that seems to be about the individual processors in the processor jar, but there's nothing in the list. It doesn't seem to find any in any of the checker jars.
Re: How can I specify particular annotation processors to run in javac? [message #1815024 is a reply to message #1814999] Tue, 24 September 2019 10:23 Go to previous messageGo to next message
Jay Arthanareeswaran is currently offline Jay ArthanareeswaranFriend
Messages: 134
Registered: July 2009
Senior Member
Have you tried adding the jars to the factory path page? It is under Java Compiler -> Annotation Processing -> Factory Path
Re: How can I specify particular annotation processors to run in javac? [message #1815030 is a reply to message #1815024] Tue, 24 September 2019 13:24 Go to previous message
David M. Karr is currently offline David M. KarrFriend
Messages: 813
Registered: July 2009
Senior Member
Yes. I didn't say "Factory Path", but that's obviously the only place you can add references to jars within "Annotation Processing", and that's the only way the "Advanced" button becomes sensitive.

I also tried adding the jars relative to the variable, as I described in the original note, but I also tried adding the absolute path to the jars. None of those have any processors in the list when I click the "Advanced" button.
Previous Topic:How to use different classpath variables for different OS's installed?
Next Topic:Maven's error
Goto Forum:
  


Current Time: Sat Dec 07 08:53:10 GMT 2024

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

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

Back to the top