Search This Blog

How to use Google Collections in GWT

  1. check out the google collections source code
    • svn checkout http://google-collections.googlecode.com/svn/trunk/ google-collections-read-only
  2. build a jar package using ant
    • cd google-collections-read-only
    • ant jargwt
    • cd ..
    • copy & add build/dist/google-collect-snapshot/google-collect-gwt-snapshot.jar  to your eclipse project's build path

  3. You also need to inherits the module file:
    <inherits name='com.google.common.Collect.gwt.xml'/>

No comments:

Post a Comment