-
1. Re: Ok so my app can't find the "@Inject" annotation from the user guide
cbrock Sep 1, 2011 11:38 AM (in response to navigateur)How are you setting up your project? Did you use our archetypes?
-
2. Re: Ok so my app can't find the "@Inject" annotation from the user guide
navigateur Sep 1, 2011 1:53 PM (in response to cbrock)As far as I know, I didn't use any archetypes, since I don't even know what one is.
My set up just uses my old server-class (extends GWT RemoteServiceServlet, and now implements Errai MessageCallback). And when I put "@Inject" above a constructor like in the user guide, Eclipse can't seem to come up with any "import" suggestions for "@Inject" (just remains unresolved).
Just want the simplest, minimal fuss way to get it working.
-
3. Re: Ok so my app can't find the "@Inject" annotation from the user guide
navigateur Sep 5, 2011 1:25 PM (in response to cbrock)What am I supposed to do? I'm using eclipse.
-
4. Re: Ok so my app can't find the "@Inject" annotation from the user guide
navigateur Sep 7, 2011 11:45 AM (in response to cbrock)I can't find anything in the user manual for this.
What exactly do I need to import to use the @Inject annotation? Is there anything else I need to do for it to work, other than just using the annotation?
-
5. Re: Ok so my app can't find the "@Inject" annotation from the user guide
cbrock Sep 7, 2011 1:55 PM (in response to navigateur)If you're not using Maven, you'll need to manually add the jsr-330 API JAR to your classpath. @Inject is a standard JavaEE annotation.
-
6. Re: Ok so my app can't find the "@Inject" annotation from the user guide
navigateur Oct 28, 2011 4:19 AM (in response to cbrock)Ok so what's the code for making it work with Java Standard Edition? Couldn't find this in the user guides.
-
7. Re: Ok so my app can't find the "@Inject" annotation from the user guide
csa Oct 28, 2011 10:09 AM (in response to navigateur)I'd recommend using our Maven Archetypes (https://docs.jboss.org/author/display/ERRAI/Quickstart+Guide) to set up your project. If you don't want that, you could copy one of our example projects (https://github.com/errai/errai/tree/master/errai-bus-demos).