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

简介:

原文:http://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() 方式加载底层库。

相关文章
|
Java Windows
java.library.path中的java.lang.UnsatisfiedLinkError否*****dll
java.library.path中的java.lang.UnsatisfiedLinkError否*****dll
172 0
so没有打包进AKP导致java.lang.UnsatisfiedLinkError: dlopen failed: library “lib.so“ not found
so没有打包进AKP导致java.lang.UnsatisfiedLinkError: dlopen failed: library “lib.so“ not found
283 0
成功解决RuntimeError: Java is not installed, or the Java executable is not on system path
成功解决RuntimeError: Java is not installed, or the Java executable is not on system path
|
Java 编译器
java: Compilation failed: internal java compiler error
java: Compilation failed: internal java compiler error
367 0
java: Compilation failed: internal java compiler error
java.lang.UnsatisfiedLinkError: Library not loaded: @rpath/libo.dylib Reason: image not found
java.lang.UnsatisfiedLinkError: Library not loaded: @rpath/libo.dylib Reason: image not found
110 0
解决办法:java.lang.UnsatisfiedLinkError ... Can't find dependent libraries
解决办法:java.lang.UnsatisfiedLinkError ... Can't find dependent libraries
553 0
|
Java 编译器
Java 编译错误: java.lang.ExceptionInInitializer com.sun.tools.javac.code.TypeTags
Java 编译错误: java.lang.ExceptionInInitializer com.sun.tools.javac.code.TypeTags
789 0
Java 编译错误: java.lang.ExceptionInInitializer com.sun.tools.javac.code.TypeTags
|
数据挖掘
java.lang.OutOfMemoryError: Coldnot not allocate JNI Env
java.lang.OutOfMemoryError: Coldnot not allocate JNI Env
java.lang.OutOfMemoryError: Coldnot not allocate JNI Env