java.lang.UnsatisfiedLinkError: Can't load library ... swt-win32-3235.dll

1,507 views
Skip to first unread message

jason

unread,
May 28, 2008, 1:22:22 PM5/28/08
to Google Web Toolkit
Hey everyone,

We've had a pretty stable development environment using Maven + Tomcat
+ Spring + GWT for a while. We've been using the hosted mode browser
only without the eclipse integration. I wanted to try out GWTShell so
I can get breakpoints in Eclipse to work, so I added the gwt-
dev-1.4.62-windows.jar dependency to my pom file and it downloaded the
proper jars to my maven repository. When I tried to run the GWT Shell
or the hosted mode browser (the same way I've always used it), I get
the following error message:

java.lang.UnsatisfiedLinkError: Can't load library: C:\Documents and
Settings\username\.m2\repository\com\google\gwt\gwt-dev\1.4.62/swt-
win32-3235.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
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)
Exception in thread "main"

When I removed the gwt-dev-1.4.62-wndows jar from my classpath,
everything worked correctly -- except that I can't use GWTShell
anymore.

I noticed that in debugger mode there is a property called
"swt.library.path" that is pointing to gwt-dev in my maven repository
("C:\Documents and Settings\username\.m2\repository\com\google\gwt\gwt-
dev\1.4.62/"). Where does this get set and is it possible to override
it?

mwaschkowski

unread,
May 28, 2008, 9:07:52 PM5/28/08
to Google Web Toolkit
Hi,

Just wanted to let you know that I got this error when I added in a
jar that wasn't in the original download folder where the .dll is. Not
sure what maven is doing, but you could try using the download from
the gwt site and referencing the jar in the same folder where the dll
is...

Cheers,

Mark
Reply all
Reply to author
Forward
0 new messages