Issue with trunk where hosted mode is a non-starter: "On Mac OS X, ensure that you have Safari 3 installed"

7 views
Skip to first unread message

eighty

unread,
Jul 7, 2009, 9:12:20 PM7/7/09
to Google Web Toolkit Contributors
I'm having a strange issue with trunk (r5687, compiled with 32-bit
Java 1.5) where hosted mode (launched from Eclipse 3.4 with 32-bit
Java 1.5 via the Google Plugin) won't start on Mac OS X 10.5.7 (Intel
Core 2 Duo 64-bit machine) with Safari 4.0.1 installed. Instead, the
console displays the following error:

"On Mac OS X, ensure that you have Safari 3 
installed".

The easiest way to reproduce the problem is to have Safari 4
installed, create a new web application project using the Google
Plugin for Eclipse, and then try to launch it.

This definitely isn't my area of expertise, but In LowLevelSaf.java on
line 135, it seems that LowLevel.init() is 
throwing an
UnsatisfiedLinkError:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java

Does anyone know of a workaround? If this is a valid issue, I'd be
happy to submit a new issue.

Thanks!

John Tamplin

unread,
Jul 7, 2009, 10:35:15 PM7/7/09
to Google-Web-Tool...@googlegroups.com
On Tue, Jul 7, 2009 at 9:12 PM, eighty <eighty...@gmail.com> wrote:

I'm having a strange issue with trunk (r5687, compiled with 32-bit
Java 1.5) where hosted mode (launched from Eclipse 3.4 with 32-bit
Java 1.5 via the Google Plugin) won't start on Mac OS X 10.5.7 (Intel
Core 2 Duo 64-bit machine) with Safari 4.0.1 installed. Instead, the
console displays the following error:

 "On Mac OS X, ensure that you have Safari 3 installed".

The easiest way to reproduce the problem is to have Safari 4
installed, create a new web application project using the Google
Plugin for Eclipse, and then try to launch it.

This definitely isn't my area of expertise, but In LowLevelSaf.java on
line 135, it seems that LowLevel.init() is throwing an
UnsatisfiedLinkError:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java

Basically if it is throwing an exception there it is unable to load the native library.  If you can print the exception there it should show exactly what library is failing to load (and perhaps why).

--
John A. Tamplin
Software Engineer (GWT), Google

brett.wooldridge

unread,
Jul 7, 2009, 11:38:14 PM7/7/09
to Google Web Toolkit Contributors
John, know any reason the new hosted mode on OS X would be trying to
launch firefox? Safari is my default OS browser, and Eclipse is
configured to use the system default browser. But the new hosted mode
console reports "Launching firefox" ... followed by matching spewage
of NS* (NetScape) errors in the Eclipse console. Thanks.

Brett

On Jul 8, 11:35 am, John Tamplin <j...@google.com> wrote:
> On Tue, Jul 7, 2009 at 9:12 PM, eighty <eightyste...@gmail.com> wrote:
>
> > I'm having a strange issue with trunk (r5687, compiled with 32-bit
> > Java 1.5) where hosted mode (launched from Eclipse 3.4 with 32-bit
> > Java 1.5 via the Google Plugin) won't start on Mac OS X 10.5.7 (Intel
> > Core 2 Duo 64-bit machine) with Safari 4.0.1 installed. Instead, the
> > console displays the following error:
>
> >  "On Mac OS X, ensure that you have Safari 3 installed".
>
> > The easiest way to reproduce the problem is to have Safari 4
> > installed, create a new web application project using the Google
> > Plugin for Eclipse, and then try to launch it.
>
> > This definitely isn't my area of expertise, but In LowLevelSaf.java on
> > line 135, it seems that LowLevel.init() is throwing an
> > UnsatisfiedLinkError:
>
> >http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/m...

Aaron Steele

unread,
Jul 8, 2009, 12:58:16 AM7/8/09
to Google-Web-Tool...@googlegroups.com
This is soooo embarrassing...

Basically I compiled GWT and then pointed my GWT library in Eclipse to
`build/lib` which doesn't include the native library libgwt-ll.jnilib.
I discovered this via John's suggestion of printing the exception
thrown in LowLevelSaf.java:

Your GWT installation may be corrupt
at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:106)
at com.google.gwt.dev.shell.mac.LowLevelSaf.init(LowLevelSaf.java:135)
at com.google.gwt.dev.BootStrapPlatform.initHostedMode(BootStrapPlatform.java:77)
at com.google.gwt.dev.HostedModeBase.<init>(HostedModeBase.java:368)
at com.google.gwt.dev.SwtHostedModeBase.<init>(SwtHostedModeBase.java:161)
at com.google.gwt.dev.HostedMode.<init>(HostedMode.java:282)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:241)
java.lang.UnsatisfiedLinkError: Unable to load required native library
'gwt-ll'. Detailed error:
Can't load library: /Users/eighty/Java/GWT/trunk/build/lib/libgwt-ll.jnilib)

The solution, of course, is pointing the GWT library in Eclipse to
`build/staging/gwt-mac-0.0.0` instead.

I guess this might be a +1 for the comment on line 137 of LowLevelSaf.java?
// Try to provide some additional context

:}

Thanks!

John Tamplin

unread,
Jul 8, 2009, 1:40:43 AM7/8/09
to Google-Web-Tool...@googlegroups.com
On Tue, Jul 7, 2009 at 11:38 PM, brett.wooldridge <brett.wo...@gmail.com> wrote:
John, know any reason the new hosted mode on OS X would be trying to
launch firefox?  Safari is my default OS browser, and Eclipse is
configured to use the system default browser.  But the new hosted mode
console reports "Launching firefox" ... followed by matching spewage
of NS* (NetScape) errors in the Eclipse console.  Thanks.

If by "new hosted mode" you mean OOPHM, that would be because it just execs firefox URL.  As we get it ready for release in 2.0, that will be cleaned up.  Until then, you just have to copy/paste the URL into a different browser.

The NS* errors are likely because you have the SWT jars on your classpath and Eclipse is helpfully adding -XstartOnFirstThread, which breaks Swing apps.  See the UsingOOPHM wiki page for details.
 
Reply all
Reply to author
Forward
0 new messages