Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java Annotation Processing(Having trouble consistently running compile time annotations with Eclipse)
Java Annotation Processing [message #1705073] Tue, 11 August 2015 20:04 Go to next message
Chris Anderson is currently offline Chris AndersonFriend
Messages: 2
Registered: August 2015
Junior Member
I'm running Eclipse Kepler and compiling with JDK6. I have code tagged with an annotation that gets processed by an annotation processor in an external jar which has been configured in the Factory Path setting of the Java Compiler. The annotation processor produces several xml files and a .java class to be included in the build.

index.php/fa/22862/0/

The build works fine until I right click my project and refresh to pull in external jar changes (not the annotation processor jar). The xml files and .java no longer get produced indicating to me the annotation processor is failing. However, I cannot find a way to view the javac logs in Eclipse. Once I restart eclipse and build again, it's fine.

I can't find a way to view the output of javac. Apparently this is because of the integration into Eclipse. I have the Problem view configured to show all errors but there is nothing indicating any errors in annotation processing.

Does anyone have any idea what's going on behind the scenes and how to rectify this?
  • Attachment: Capture.JPG
    (Size: 51.59KB, Downloaded 1286 times)
Re: Java Annotation Processing [message #1705313 is a reply to message #1705073] Thu, 13 August 2015 16:53 Go to previous messageGo to next message
Chris Anderson is currently offline Chris AndersonFriend
Messages: 2
Registered: August 2015
Junior Member
Quick update, upgraded to Mars and I'm experiencing the same behavior. I noticed the issue occurs when doing a clean as well.
Re: Java Annotation Processing [message #1705346 is a reply to message #1705313] Fri, 14 August 2015 03:21 Go to previous messageGo to next message
Jay Arthanareeswaran is currently offline Jay ArthanareeswaranFriend
Messages: 134
Registered: July 2009
Senior Member
Let me try to understand the scenario.

1. There are bunch of external JARs in the build path of the project. And the project has been configured with an annotation processor that resides in an external JAR and when you refresh from package explorer (or is it project explorer) the XML and Java files that the processor supposed to be generating are not present. Assuming my understanding is correct, I have some questions:

1. Is the external JAR that has the processor - is that also part of the project's build path?
2. Can you open the log file and see if there's anything relevant there? You can find it in <workspace_location>/.metadata/.log

BTW, Eclipse has it's own compiler and doesn't use Javac for compiling.
Re: Java Annotation Processing [message #1705679 is a reply to message #1705346] Tue, 18 August 2015 10:40 Go to previous message
vicky waran is currently offline vicky waranFriend
Messages: 2
Registered: August 2015
Junior Member
Hi, I have seen for the program after that update for this JAR files.This files build on top of the existing JARs and then restarting application..When the JARs are built using a maven build process the program file using JARs file update..If i would expected for the linkages error (or) classnotfound errors for interfaces change...

I told him Any new features updates for your eclispe?

Thanks a lot..
Previous Topic:Eclipse Mars: Archive for required library: <JAR-file-Path> in project <My-Project-name>
Next Topic:-clean launch
Goto Forum:
  


Current Time: Thu Dec 05 04:16:13 GMT 2024

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

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

Back to the top