How to set the java.library.path in intelliJ Idea
If you run your program from IntelliJ then you can set the java.library.path in the VM options input field in the Run/Debug Configurations dialog. Example: -Djava.library.path=”C:\path\to\where\the\jni\lib\is”