run GWTUnitTest, get java.lang.UnsatisfiedLinkError: no swt-win32-3232 in java.library.path

366 views
Skip to first unread message

AB

unread,
Oct 2, 2007, 9:20:07 PM10/2/07
to Google Web Toolkit
Hey all,

I have a small working app (runs in my appserver and gwt shell mode)
using gwt-1.4.60
I tried to write by first unit test but getting a
UnsatisfiedLinkError: no swt-win32-3232 in java.library.path when I
run under eclipse-3.3 (havent tried outside eclipse yet).

I tried all the standard stuff:
made sure swt-win32-3235.dll is in my classpath
Tried putting swt-win32-3235.dll in windows/system32
Tried putting it elsewhere with a -Djava.library.path=/gwt-
windows-1.4.60

I saw something similar in http://code.google.com/p/google-web-toolkit/issues/detail?id=822
so I even tried unzipping a fresh copy of gwt-1.3 to extract the dll
and that didnt help (but did break gwt shell since I guess it is an
older swt impl).

Interestingly, the error exists even with a trivial testcase (see
below).

Im pretty stuck as far as unit testing goes.

public class MyAppTest extends GWTTestCase {

@Override
public String getModuleName() {
return "com.drillinginfo.gwt.client.MyApp";
}

public void testFoo() throws Exception {
}

}

AB

unread,
Oct 2, 2007, 10:10:18 PM10/2/07
to Google Web Toolkit
OK, im an idiot. We had an old swt jar on the eclipse project cp
(guess it is used for something: such is the downside of the Enormous
Monolithic Project pattern). Anyway, Now im getting an
java.lang.IllegalAccessError: class
com.google.gwt.dev.shell.tomcat.CatalinaLoggerAdapter cannot access
its superclass org.apache.catalina.logger.LoggerBase
Even when I run the GWTUnitTest in -web mode (not sure why it should
load Catalina in that case). No doubt another jar hell issue.

Reply all
Reply to author
Forward
0 new messages