JNA UnsatisfiedLinkError, but jna.library.path is set
问题 I'm using the following code to load a dll in JNA (irrelevant code is left out): public class JNAMain { public interface PointShapeBuffer extends Library { ... } public static void main(String[] args){ System.setProperty("jna.library.path", "c:\\jnadll"); System.setProperty("java.library.path", "c:\\jnadll"); PointShapeBuffer jna = (PointShapeBuffer) Native.loadLibrary("FileGDBAPI", PointShapeBuffer.class); } } And I get the following error: Exception in thread "main" java.lang