Java JNI and dependent libraries on Windows

前端 未结 4 1933
挽巷
挽巷 2020-12-09 20:47

Long story short: I have an executable jar, that calls jni.dll which is dependent on lib.dll. And I\'m getting the oh-so-dreaded UnsatisfiedL

4条回答
  •  北海茫月
    2020-12-09 21:18

    Put dlls your jni.dll depends on in your "current working directory", check this System.getProperty("user.dir") at runtime to get to know what is your "current working directory"

提交回复
热议问题