excilys/androidannotations — Issue #99: Nothing gets generated
Author: pyricau
Created: 2012-02-06 20:34:09+00:00
State: open

> Copied from http://code.google.com/p/androidannotations/issues/detail?id=89

By @orrc :

Sorry to bring up an old issue (and on the old tracker), but I'm having the exact same problem and it's driving me a bit crazy.. :)

I tried creating my own project from scratch in Eclipse, adding the "api" JAR to the build path and the "processor" JAR to the Factory Path, but still nothing gets generated.
I also tried using the "HelloWorldEclipse" project from the GitHub repository, and just modified the paths, and again nothing happens.

From the attached screenshot, you can see that I'm using the correct JAR (I've tried both the 2.4 JAR and ones compiled from git HEAD), and by pressing "Advanced" you can see that Eclipse appears to correctly find the "AndroidProcessor" processor in that JAR file.

My compiler setting is at 1.6, I'm running Eclipse 3.7.1 with java version "1.6.0_26" on Mac OS X, yet only an empty ".apt_generated" folder is created by Eclipse.

Checking the "bin/classes" directory, only the original R and Activity .class file is created; no Activity_ classes are created. The class files have "version 50.0", i.e. Java 6. There are no errors in the Eclipse "Error Log" view.

From the command line with Ant, the project compiles, processes the annotations and runs as expected on my phone. I'm using the same JAR files as in Eclipse; the only change I did was to add the "processor" JAR to the Ant classpath, as described on the wiki.

Finally, I imported a personal (non-Android) project which uses annotation processing into Eclipse, and it compiles fine (even with compiler level 1.5).

Do you have any ideas what could be wrong, or what I can check next? Thanks!

![Bug screenshot](http://androidannotations.googlecode.com/issues/attachment?aid=890011000&name=factory-path.png&token=4xKb9Z1QFb2tEte50But05uHKpM%3A1328560029739&inline=1)