GWT,Guice和GIN编译 [英] GWT, Guice and GIN compilation
问题描述
我正在尝试使用Guice和杜松子酒来构建GWT MVP应用程序。我添加了Guice和GIN jar到我的Eclipse项目中,但是我遇到了这个错误:
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
我做了一个快速的Google搜索, href =http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2484550628c20624 =nofollow>这里表示我们需要针对GWT SDK重新编译GIN。另外,杜松子酒教程提到了编译步骤。
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.
添加GIN jar到GWT项目还是不够的,还是必须从源代码生成gin.jar?我如何使用Eclipse(使用Google插件)完成此操作?
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:我没有在我的项目中使用Maven。只有Eclipse和Google Tools
另一个PS:目前使用Guice 3.0,Gin 1.5和GWT 2.3
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
推荐答案
使用> GWT 2.2
或更高版本尝试使用 gin 1.1
或更高版本的最新快照,并升级 guice 3.0
。
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
.
这篇关于GWT,Guice和GIN编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!