Guava and GWT
Google’s Guava is a fantastic framework that makes Java tolerable. (It was a major reason I wanted to work there.) Using it with GWT in Eclipse is fairly straightforward. Here are the steps that worked for me:
- Add
guava-r09andguava-r09-gwttowar/WEB-INF/lib - Add them both to the classpath.
Make sure you import like this:
import com.google.common.base.Function;NOT like this:
import com.google.gwt.thirdparty.guava.common.base.Function;
The latter leads only to sadness.
Different steps are required to make this work with versions earlier than r09.