If I copy the DLL into the working directory of the unit tests (basedir)
then they work fine. It just seems to completely ignore the value if
java.library.path.
I guess it is some kind of class loader issue or something? I am quite lost
Matthew
J. Matthew Pryor wrote:
I am trying to get some JUnit tests working that need to load a DLL.
I have configured surefire to pass the relevant value for the
java.library.path System property but the DLL won't load
I get "java.lang.UnsatisfiedLinkError: no jspWin in java.library.path"
I have written extra test code to print out the value of
java.library.path and even test for existence of the relevant DLL file
before attempting to load the DLL (all seems OK)
If I call the same code from a standard java main, it works just fine
with the DLL in the same location.
I have searched around but not found anything helpful. I have tweaked
forkMode, childDelegation and other settings to no avail.
If anyone has any leads for me, I'd appreciate it
Thanks,
Matthew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]