閱讀279 返回首頁    go 阿裏雲 go 技術社區[雲棲]


java.lang.UnsatisfiedLinkError: Can't load library from JNI code

原文:https://www.velocityreviews.com/forums/t390018-java-lang-unsatisfiedlinkerror-cant-load-library-from-jni-code.html


For System.loadLibrary() use the short name only, i.e. no path prefix
or dll extension, and make sure the file is in java.library.path or
your search PATH. For example:

System.loadLibrary("sampleDLL2");


For System.load(), specify the full path and filename. For example:

System.load("C:/sampleDLL2.dll");


System.loadLibrary() is the preferred mechanism.


推薦使用System.loadLibrary() 方式加載底層庫。

最後更新:2017-04-02 06:51:59

  上一篇:go 可循環顯示圖像的Android Gallery組件
  下一篇:go gcc編譯報錯:程序中有遊離的‘\357’‘\273’‘\277’等 解決方法