I created a project (sample mortgage calculator--more here:
) using the provided eclipse tools. Everything was working fine
there--I was able to compile to js, and debug in Eclipse.
Now I'm trying to get hosted mode for this coderunning from an existing
project. I've moved over the jar files from GWT (gwt-dev-windows.jar,
gwt-user.jar) into a lib directory, and am successfully able to compile
Now I'd like to be able to run the code from Eclipse so I can set
breakpoints, etc. I have copied over the .launch file parameters. The
error seems to be that the gwt-ll.dll can't be located. I'm getting
[ERROR] The browser widget class could not be instantiated
java.lang.UnsatisfiedLinkError: Unable to load required native library
Your GWT installation may be corrupt
I verified that gwt-ll.dll that is in the lib directory of my larger
project is the same size and byte for byte the same as the gwt-ll.dll
that I unzipped from the GWT distribution.
I have tried to register these dlls by running regserv32 (I get this
error from registering gwt-ll.dll: "LoadLibrary("gwt-ll.dll") failed -
Access is denied." ), and putting them in \windows\system32\. I also
tried starting eclipse from the directory they are in. In all cases, I
get the error above.
One weird thing is that, if I run the launcher from the original
project, everything works fine. I thought it might be related to
classloaders owning dll files (from this article:
http://www.eclipsezone.com/articles/eclipse-vms/), but rebooting and
running my launcher first (as opposed to the original generated
launcher) still gives me the same error.
I've searched the google groups and didn't see anything relevant.
There's one article where the author mentions the DLL search path:
) but that doesn't seem to help me too much. I also scanned through
the pages of http://jroller.com/page/masini , but didn't see anything
regarding my dll problem.
I'm not really compentent at windows dll debugging, so any help you
could give me would be appreciated.
Well, the answer turned out to be this:
For my launcher, I had added the gwt-user.jar and gwt-dev-windows.jar
as jars, not as external jars. They need to be external jars to find
the DLLs, apparently. Changing them to external jars, pointing outside
of my source tree, caused my launcher to work just dandy.