摘要:
参考http://netbeans.org/kb/docs/cnd/beginning-jni-linux.html做完后会发现运行时提示Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidemojava.Main.nativePrint()V at jnidemojava.Main.nativePrint(Native Method) at jnidemojava.Main.main(Main.java:28)Java Result: 1解决办法是在其它选项添加-Wall -D_JNI_IMPLEM 阅读全文