Talin
Talin

Reputation: 1415

Gin / Gwt / Eclipse: com.google.gwt.inject.Inject cannot be resolved to a type

I'm trying to use GIN (Guice for GWT) within eclipse. The tutorial says to add a line to my module xml file:

   <inherits name="com.google.gwt.inject.Inject"/>

However, when I do this Eclipse reports an error "com.google.gwt.inject.Inject cannot be resolved to a type"

I've added gin.jar, aopalliance.jar and guice.jar as referenced libraries. What else do I need to do?

Upvotes: 2

Views: 4154

Answers (3)

Spiff
Spiff

Reputation: 4094

I had the same problem, I deleted gwt-UnitCache and it worked...

Upvotes: 1

CristiC
CristiC

Reputation: 192

Did you import the guice-assistedinject jar, i think you need that jar as well

Upvotes: 1

kospiotr
kospiotr

Reputation: 1867

What operating system do you use? I've heard that some releases of Gin have problems with chmod privilages on unix a like systems.

Upvotes: 0

Related Questions