Hi,
i'd like to set java.library.path property in java code to load a dll-library. I know that a funtional way is to run JVM with parameter -Djava.library.path=c:\tmp, but I need it do it IN CODE.
I'v tried this:
System.setProperty("java.library.path", "c:\\tmp");
System.loadLibrary("libapr");
The library 'libapr.dll' is situated really in 'c:\tmp' directory, but I get 'java.lang.UnsatisfiedLinkError: no libapr in java.library.path' exception.
It seems like the already running java program doesn't use actual java.library.path set in previous step.
Is there any possibility to set java.library.path property in java code?
Thanx
Brny