Search code examples
gwtguicegwt-gin

GWT, Guice and GIN compilation


I'm trying to build and GWT MVP application using Guice and Gin. I added Guice and GIN jars to my Eclipse project but i'm stuck with this error:

java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions

I've done a quick Google search and here says the we need to recompile GIN against GWT SDK. Also, the Gin Tutorial mention something about a compilation step.

Isn't enough to add GIN jars to the GWT project, or is mandatory to generate gin.jar from sources? How do i accomplish this with Eclipse (with Google Plugin)?

PS: I'm not using Maven in my Project. Only Eclipse and Google Tools Another PS: Currently using Guice 3.0, Gin 1.5 and GWT 2.3


Solution

  • If you are using GWT 2.2 or above try using a latest snapshot of gin 1.1 or higher versions and also upgrade guice 3.0.