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");
}
/**