I need to programmatically load a native library (ntlmauth.dll) from my plugin code, because it depends on the agent bitness (x86 or x64) I can't just use the java.library.path to do so. I tried:
String pluginDir = configuration.getAgentPluginsDirectory().getAbsolutePath();
String arch = configuration.getSystemInfo().bitness() == Bitness.BIT32 ? "x86" : "x64";
Inside my plugin the lib structure is:
It looks like the native library is load as expected, but later when trying to use it I get the following error:
I/O Error: SSO failed: Native SSPI library not loaded. Check the java.library.path system property.
Any idea what's happening and how to solve it?
Thanks a lot!
PD: What's the procedure to include JNI libraries in agent plugins?