I am learning Gin with GinTutorial and I've stacked on silly problem.
In bind(MyWidgetMainPanel.class).in(Singleton.class);
Singleton does not exist.
I've already tried the following:
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.gwt.inject.client.Singleton;
import com.google.gwt.inject.Singleton;
IDE shows that Singleton does not exist before compilation time.
If I try to use import com.google.inject.Singleton;
it shows that Singleton does not exist on compilation.
I'd be happy to have any of your ideas or explanations.
Finally I've found that it is not enough to add gin-2.1.2.jar
to classpath. It requires guice-3.0.jar
.