Fantastic that worked. Not sure why it is needed when I don't need it to run from a straight command-line but ... The only issue I have now is that I have to include the JVM/JDK location in the path definition. Is there are variable I can use to get the one that maven is using?

Thanks,
Matthew

dan tran wrote:
try to setup the PATH env via systemVariables configuration of surefile

<environmentVariables>
  <path>${path.to.your.dll};${java.library.path}</path>
</environmentVariables>


On 6/28/06, J. Matthew Pryor <[EMAIL PROTECTED]> wrote:

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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to