I want to learn Guice. I use eclipse. What to download? What to install? What to do in eclipse to use guice? Thanks.
+3
A:
You could start by following the installation guide for GuicePlugin (although that project doesn't seem very active sine April 2009):
peaberry is more up-to-date, and comes with a "Guide for using the peaberry bundle with OSGi".
If you don't need a special integration with Eclipse, all you need is the Guice2.0 release, referenced in the libraries of your project to get started.
VonC
2010-07-16 14:15:56
It's funny to see how you build your response by taking from others :). Anyway, I must admit that it's more complete
Sylvain M
2010-07-16 14:58:13
@Sylvain: more from Google for the first part (you were answering at the same time. +1 btw). But I do also use the "aggregation" tactic (provided I add some extra documentation).
VonC
2010-07-16 15:31:26
@VonC I did what the guide says, and installed this in eclipse, but I still can't use it (Eclipse does not identify the `@Inject` annotation. What do I need to do?
Amir Rachum
2010-07-16 18:30:31
@Amir: if you are talking about the Guice plugin, this is not surprising (it depends on the Eclipse version, and the project stopped one year ago). But if you simply add the right jar to your project, all Guice annotations are recognized. See the picture in my updated answer.
VonC
2010-07-16 19:37:52
@VonC: No problem at all. I see that you don't just "copy/paste" other responses, I'm sure that you know what you say. The main purpose is to provide the better response, and you do it fine :) (I learn a lot from this web site and guys like you !)
Sylvain M
2010-07-16 22:22:00