Thanks Sumit. That's a great news. For those of you who can't wait for the official patch release, I've rebuilt the gwt-dev-mac.jar file from a checkout of the 1.7.0 tag. I've made a very minor edit to the BootStrapPlatform.java file (diff shown below) to check for 32-bit-ness rather than 1.5-ness. In order to use this on Snow Leopard with 1.6 simply add the "-d32" option to your java command line to use the 32-bit version of the jvm. Note that since this is a temporary work around and a convenience for building your own 1.7.0 patch I'm only going to keep the link active until the official GWT patch is out. Let me know if anyone runs into any problems.
http://www.messaginglogic.com/gwt-dev-mac.jar -iain ion $ svn diff BootStrapPlatform.java Index: BootStrapPlatform.java =================================================================== --- BootStrapPlatform.java (revision 6146) +++ BootStrapPlatform.java (working copy) @@ -69,8 +69,8 @@ * The following check must be made before attempting to initialize Safari, * or we'll fail with an less-than-helpful UnsatisfiedLinkError. */ - if (!isJava5()) { - System.err.println("You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X."); + if (!isJava32()) { + System.err.println("You must use a Java 32-bit runtime to use GWT Hosted Mode on Mac OS X."); System.exit(-1); } @@ -111,11 +111,11 @@ } /** - * Determine if we're using the Java 1.5 runtime, since the 1.6 runtime is + * Determine if we're using the Java 32-bit runtime, since the 1.6 runtime can be * 64-bit. */ - private static boolean isJava5() { - return System.getProperty("java.version").startsWith("1.5"); + private static boolean isJava32() { + return System.getProperty("sun.arch.data.model").equals("32"); } /** On Sep 14, 5:33 pm, Sumit Chandel <[email protected]> wrote: > Hi All, > For those of you who have been running into problems using GWT 1.7 with Snow > Leopard, please accept our humble apologies. > > We are working on getting a GWT 1.7 point release out that will fix this > issue so that you may use Snow Leopard with the JDK 1.6 32-bit libraries > without having to tweak your OS settings. > > Cheers, > -Sumit Chandel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
