Thank you for your answer.
I am sorry but I don't see how using Native.extractFromResourcePath(String name) solves my problem.
I need to load a Library.dll and its n dlls dependencies as well. These 1+n dlls can be either inside a Library.jar or on the same folder as Library.jar The problem is that we don't deliver the jar with an installer therefore i don't know where our users will save it on his disk.
So,
- Assuming that my dlls are inside the jar and that I know where Library.jar is, is there a way to load the main Library.dll and its dependencies as well?
- Assuming that my dlls are in the same folder as the jar, how can I get the absolute path to that folder so I can set the variable "jna.library.path" before calling the Native.loadLibrary()?
Can you please write down an example?
Alessandro