wtf nth

  • Archive
  • RSS

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:

  1. Add guava-r09 and guava-r09-gwt to war/WEB-INF/lib
  2. Add them both to the classpath.
  3. 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.

    • #gwt
    • #eclipse
    • #java
    • #guava
  • 9 months ago
  • 3
  • Permalink
  • Share
    Tweet

3 Notes/ Hide

  1. wtfnth posted this
← Previous • Next →

About

stuff I learned the hard way

Pages

  • why
  • me
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr