Monday, December 14, 2009

Building gwt-presenter and gwt-dispatch on OS X Leopard

I had been having quite a bit of trouble building and running applications that use gwt-presenter, gwt-dispatch and Google GIN on Leopard 10.5.8 recently. The problem comes from the fact that there is no 32 bits JDK6 available. Upgrading to Snow Leopard would of course fix the issue but here are some steps I've taken to compile and run in GWT hosted mode successfully:

- download gwt-presenter and gwt-dispatch locally
- set the active JDK to JDK6 64 bit
- set the build targets in the PM to JDK 1.5
- build jars and install into the local Maven2 repository
- switch the active JDK to JDK5
- build host project
- should run successfully in GWT hosted browser

No comments: