David Chandler's Journal of Java Web and Mobile Development

  • David M. Chandler

    Web app developer since 1994 and Google Cloud Platform Instructor now residing in Colorado. Besides tech, I enjoy landscape photography and share my work at ColoradoPhoto.gallery.

  • Subscribe

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 223 other followers

  • Sleepless Nights…

    September 2009
    S M T W T F S
  • Blog Stats

    • 1,029,169 hits

Archive for September 23rd, 2009

Getting Started with GIN and Guice

Posted by David Chandler on September 23, 2009

As part of the RememberOneAnother project, I’m using the excellent gwt-presenter and gwt-dispatch frameworks, which in turn depend on GIN and Guice. You can download the Guice jars from the project site, but you have to build GIN. I did the following in Eclipse:

  1. Set a GWT_HOME env variable to C:\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.7.0.v200907291526\gwt-windows-1.7.0 and restart Eclipse to pick up the new var.
  2. Download Guice.
  3. Check out GIN from SVN (see the project Source tab for location) as a new Java project using the New Project Wizard.
  4. Add the guice-2.0.jar to the GIN project’s build path.
  5. Right-click on the GIN build.xml and click Run As Ant Build… In the Targets tab, select the “dist” target. In the JRE tab, make sure a JDK is specified and not just a JRE.
  6. Click Run to build GIN. The resulting gin.jar will be put in the out/dist folder. You may need to unfilter .* resources to see it.

Posted in GIN / Guice, Google Web Toolkit | Leave a Comment »

%d bloggers like this: