Ubuntu 8.04 + Hibernate4GWT sample.stateless problem

39 views
Skip to first unread message

Madz

unread,
May 21, 2008, 4:01:14 AM5/21/08
to Google Web Toolkit
Hi,

I've downloaded the sample project for stateless app using
Hibernate4GWT but the problem is I get an error in my eclipse console
and not able to run any application that using Hibernate4GWT library
strange?!
This is the error I'm getting.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load
library: /home/madz/gwt/hibernate4gwt-1.0.4/lib/libswt-win32-3235.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
at com.google.gwt.dev.GWTShell.<clinit>(GWTShell.java:264)

I'm using:

Ubuntu 8.04
GWT 1.62(Linux)
Eclipse 3.3

noon

unread,
May 21, 2008, 4:58:10 AM5/21/08
to Google Web Toolkit
Hello,

You have to set the "gwt-<platform>-dev.jar" archive at the *first
place* of the "Run..." classpath entry and it should work.

Regards
Bruno

Madz

unread,
May 21, 2008, 5:53:48 AM5/21/08
to Google Web Toolkit
I've followed your advice and another error come up?!

Unable to load required native library 'gwt-ll'. Detailed error:
/home/madz/gwt/gwt-linux-1.4.62/libgwt-ll.so: /home/madz/gwt/gwt-
linux-1.4.62/libgwt-ll.so: undefined symbol: JS_PropertyStub)

Your GWT installation may be corrupt

I'm sure that my GWT installation is in correct path and it is a fresh
extract from the zip file.

here is the error from GTW log.

[ERROR] The browser widget class could not be instantiated
java.lang.UnsatisfiedLinkError:
org.eclipse.swt.internal.win32.OS.GetVersionExW(Lorg/eclipse/swt/
internal/win32/OSVERSIONINFOW;)Z
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:62)
at org.eclipse.swt.internal.ole.win32.COMObject.<init>(COMObject.java:
38)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.<init>(IDispatchImpl.java:
165)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.<init>(BrowserWidgetIE6.java:
41)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6.<init>(BrowserWidgetIE6.java:
228)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget(PlatformSpecific.java:
53)
at com.google.gwt.dev.GWTShell.openNewBrowserWindow(GWTShell.java:
504)

[ERROR] Unable to open new window for startup URL:
http://localhost:8888/net.sf.hibernate4gwt.sample.Sample/Sample.html

Regards,

noon

unread,
May 21, 2008, 12:17:17 PM5/21/08
to Google Web Toolkit
Hi again,

I think you should replace the gwt-windows-dev.jar (present in sample/
lib directory) by the linux counterpart.

Regards
Bruno
Reply all
Reply to author
Forward
0 new messages