我要评分
获取效率
正确性
完整性
易理解

UnsatisfiedLinkError Reported When Compiling JNA

Symptom

An error is reported when compiling JNA:

1
Library 'lib?????.so'at /tmp/jna-3506402/lib?????.so could not be loaded: java.lang.UnsatisfiedLinkError

Key Process and Cause Analysis

None

Conclusion and Solution

  1. In the test/com/sun/jna/LibaryLoadTest.java file in the source code directory, comment out the following code:
    1
    //fail("Library'" + newLibName + "' at " + dst + " could not be loaded: " + e);
    
  2. Run the compile command.
    1
    ant