Tuesday, September 29, 2009

GWT & Java 6 are Now Working under Snow Leopard

On my previous article GWT does not Work with Snow Leopard, I wrote about some issues that I faced with the new version of Mac OS X, Snow Leopard, and GWT framework. To refresh your memory, GWT framework does not work with Mac OS Snow Leopard because Mac OS Snow Leopard cames up with a 64-bit Java version by default, which is not compatible with GWT 1.7.0 and even any version of GWT.

With the new official release of GWT 1.7.1, now you can run GWT and Java 6 by using Java command line argument -d32 when you start GWT in hosted mode. For example, if you're using Google Plugin for Eclipse, you can add this argument on its settings, and GWT will be launched in hosted mode by using a 32-bit Java Virtual Machine.

Source: GWT 1.7.1 release fixes Mac OS X Snow Leopard issues by Andrew Bowers

Tuesday, September 15, 2009

GWT does not Work with Snow Leopard

About two weeks ago with the new release of Snow Leopard, I was so excited about upgrading my Macbook Pro OS X to this new operating system. Things came well until I got a message when I was starting up GWT hosted mode application. GWT hosted mode was not launched because Snow Leopard comes with the 64-bit Java 6 version as its default Java Virtual Machine. As you may probably know, GWT is not compatible with any 64-bit Java versions. I initially thought that GWT, specifically 1.7.0 version, was not compatible with Java 6 because of its System Requirements. But after having read Snow Leopard, Java 6 and GWT article, I realized that GWT works with any 32-bit Java versions, even Java 6. All that you need to do is to read Snow Leopard, Java 6 and GWT article and follow the instructions that Alex Moffat posted in it.

A quickly fix was posted in OS X 10.6 Snow Leopard article few hours after Snow Leopard had been released in order to downgrade the JVM from Java 6 to Java 5. I downgraded the JVM version on my Mac OS X because I needed to keep working on my GWT project. But if you need to use Java 6 feautures and work with GWT, I highly recommend you to follow the steps posted in Snow Leopard, Java 6 and GWT.