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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With