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.Listsis not actually in the Guava jars. Try instead referencingcom.google.common.collect.Listsand you should have some more success.