-
Notifications
You must be signed in to change notification settings - Fork 131
Description
This may be related to issue #2 and where the DLL is on the file system.
In Java 21, I can no longer hack the java.library.path value at runtime and point to a directory to search for loading the library. The DLL either has to be in the current working directory or the PATH environment variable (or in the java.library.path that's specified at java startup with -D).
In my distribution, I know where the installer is going to put the DLL, but I can guarantee that the user is going to have that in their PATH, so I'd like to point to that location at runtime.
I tried doing a system.load(dllPath) before calling jacob, but it still tries to load the DLL on it's own and I get a not found exception when the DLL isn't in the path.
Can you expose a function that allows the location of the DLL to be set at runtime before we try to load it? Or something similar that allows the location of the DLL to be specified at runtime.