Unable to load required native library 'gwt-ll' error when runnig example under Linux (solution included)

37 views
Skip to first unread message

PeterPal

unread,
Sep 1, 2007, 4:52:14 PM9/1/07
to Google Web Toolkit
Hello,


I've encountered problems running a gwt example under linux. I use
gwt-linux-1.4.60 which I installed by untarring gwt-
linux-1.4.60.tar.bz2 as root in /usr/local. When I run the <example>-
shell shell script as normal user I get the following error:

[ERROR] The browser widget class could not be instantiated
java.lang.UnsatisfiedLinkError: Unable to load required native library
'gwt-ll'. Detailed error:
/usr/local/gwt-linux-1.4.60/libgwt-ll.so: Can't load IA 32-bit .so on
a IA 32-bit platform)

Your GWT installation may be corrupt
at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:107)
at com.google.gwt.dev.shell.moz.LowLevelMoz.init(LowLevelMoz.java:
102)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:538)
at com.google.gwt.dev.shell.BrowserWidget.<init>(BrowserWidget.java:
242)
at
com.google.gwt.dev.shell.moz.BrowserWidgetMoz.<init>(BrowserWidgetMoz.java:
83)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget(PlatformSpecific.java:
53)
at com.google.gwt.dev.GWTShell.openNewBrowserWindow(GWTShell.java:
504)

All goes fine when I launch the GWT shell as the root user.

That I installed the tar file as root triggered my grief. As it turns
out, the permissions in the gwt-linux-1.4.60.tar.bz2 archive are a
bit of a mess: files aren't world readable, directory aren't world
traversable and shared libraries are not world executable.

After executing the commands

find . -type f ! -perm -ugo=r -exec chmod ugo+r {} \;
find . -name '*.so' -exec chmod 755 {} \;
find . -type d -exec chmod 755 {} \;

in /usr/local/gwt-linux-1.4.60/ all is fine: I can run my example as
an ordinary user.

I guess the distribution tar file should be fixed.


Peter

Reply all
Reply to author
Forward
0 new messages