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 224 other followers

  • Sleepless Nights…

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

    • 1,034,589 hits

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: