【发布时间】:2011-06-15 06:44:30
【问题描述】:
我很难让 GWT 与 Guava 一起工作。我将guava-r09-gwt.jar 添加到我的类路径中,并将<inherits name="com.google.common.collect.Collect"/>(从this question 复制)添加到我的*.gwt.xml 文件中。但是,我仍然收到以下错误:
[ERROR] 第 99 行:没有源代码 可用于类型 com.google.gwt.thirdparty.guava.common.collect.Lists; 你忘了继承一个必需的 模块?
引用的行是:
List<String> suggs = Lists.newArrayList();
如果我尝试以下inherits 标签:
<inherits name="com.google.common.collect.Lists"/>
然后 GWT 完全失败 - 在浏览器中访问应用程序会给出 404,并且 Eclipse 的开发面板中没有出现任何 URL。
我做错了什么?
【问题讨论】: