frankiesardo/icepick

Eclipse Setup

MFlisar opened this issue · 9 comments

Could you please explain the setup with eclipse?

No matter what combination I try (putting a lib to "Annotation Processing"/"Factory Path" and adding a lib to android project), I eiteher get a java.lang.NoClassDefFoundError or after the preprocessing, I have no extra output in the .apt_generatad files...

I though, I should add the precessor lib to "Annotation Processing"/"Factory Path" and the other library to my android project, but that does not work...

Mhmh, I don't use Eclipse so I might not be the best one to give you advices.
Have you tried following the instruction for other APT libraries? ButterKnife and Dagger come with a very thorough documentation for every IDE setup.

You'll need to add icepick, icepick-processor, and guava to your Factory Path.

Guava? I've not read anything of this library here... BUT that was the solution, so thanks.

PS: can I derive from that, that the android studio has a default guava version?

I believe that Android Studio would resolve the dependencies in build.gradle, which includes Guava.

@MichaelFlisar Icepick uses Guava at compile time to process the annotations, so don't worry about increase in apk size. If you use Android Studio or maven to build your android project any transitive dependencies for the library you use will be resolved for you so you don't have to worry about those low level details. If you plan on using many libraries (and you should, the Android community is awesome) you should definitely consider that.

@pushbit Thanks for helping out.

I know, I only added it to the annotation path anyways... Thanks

PS: I AM using many libraries and I've not had any problems yet... I'm just used to eclipse and I am using it for normal java development as well... So for the moment, I just feel more convenient with it :-)

I ended up with the following in my .factorypath file

<factorypathentry kind="VARJAR" id="M2_REPO/com/github/frankiesardo/icepick-processor/2.3.5/icepick-processor-2.3.5.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/github/frankiesardo/icepick/2.3.5/icepick-2.3.5.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/com/google/guava/guava/16.0.1/guava-16.0.1.jar" enabled="true" runInBatchMode="false"/>

Would it be possible to document this either in the readme or on a seperate wiki site?

Thanks for documenting it on SO. I'll add a quick note on the readme for anybody using plain jar files.