java.library.path value is set to a folder containing .dll files in the application. Now when we upgrade from java 9.0.1 to 9.0.4 this value is lost and the application does not launch since it cannot find the dlls. Setting the path value to code did not work using
System.setProperty("java.library.path", "./bin");
I have tried this answer too but this solution does not work for the latest java I guess.
Passing the value through
java -Djava.library.path=./bin
works but I want to do this through code. Is there a way to do this?