麻烦GWT和番石榴 [英] Trouble with GWT and Guava
问题描述
我很难让GWT与番石榴一起工作。我在我的类路径中添加了 guava-r09-gwt.jar
,并且< inherits name =com.google.common.collect.Collect/ >
(从这个问题复制)到我的 *。gwt.xml
文件。但是,我仍然得到以下错误:
[错误]第99行:没有源代码可用于
类型
com.google.gwt.thirdparty.guava.common.collect.Lists;
是否忘记继承所需的
模块?
引用的行是:
列表< String> suggs = Lists.newArrayList();
如果我尝试以下继承
标签:
< inherits name =com.google.common.collect.Lists/>
然后GWT完全失败 - 去浏览器中的应用程序给出404,并且没有URL出现Eclipse的开发小组。
我在做什么错了?
您会注意到 com.google.gwt.thirdparty.guava.common.collect.Lists
实际上并不在Guava中。尝试引用 com.google.common.collect.Lists
,您应该获得更多成功。 I am having difficulty make GWT work with Guava. I added guava-r09-gwt.jar
to my classpath, and <inherits name="com.google.common.collect.Collect"/>
(copied from this question) to my *.gwt.xml
file. However, I still get the following error:
[ERROR] Line 99: No source code is available for type com.google.gwt.thirdparty.guava.common.collect.Lists; did you forget to inherit a required module?
The referenced line is:
List<String> suggs = Lists.newArrayList();
If I try the following inherits
tag:
<inherits name="com.google.common.collect.Lists"/>
Then GWT totally fails - going to the app in the browser gives a 404, and no URL appears in Eclipse's development panel.
What am I doing wrong?
You'll notice that com.google.gwt.thirdparty.guava.common.collect.Lists
is not actually in the Guava jars. Try instead referencing com.google.common.collect.Lists
and you should have some more success.
这篇关于麻烦GWT和番石榴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!