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
- 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);
- Run the compile command.
1ant
Parent topic: Rectifying Faults