From: Mark K. <swi...@di...> - 2010-02-24 03:10:34
|
I'm having a problem with a Java wrapper that works just fine on OS X and FreeBSD, but fails on Windows 7, so I'm sure I've got the proper System.loadLibrary statement in my test code. I'm getting the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: librets.libretsJNI.swig_module_init()V at librets.libretsJNI.swig_module_init(Native Method) at librets.libretsJNI.<clinit>(libretsJNI.java:557) at librets.RetsSession.<clinit>(RetsSession.java:223) at login.main(login.java:25) I've gone so far as to place my DLL into java_home/bin and the jar into java_home/lib/ext. I can also see the symbol in the DLL: 539 21A 0000FCC0 Java_librets_libretsJNI_swig_1module_1init And the dependency walker says I have resolved all the externals properly. Any hints as to how to debug this would be appreciated. Regards, M. swig: 1.3.40 $ java -version java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode) $ dumpbin /headers librets.dll | fgrep machine 8664 machine (x64) |