摘要:
publicclass testdll { static { System.loadLibrary("goodluck"); } public native staticintget(); public native staticvoidset(int i); publicstaticvoid main(String[] args) { testdll test =new testdll(); test.set(10); System.out.println(test.get()); } } 首先引用一篇文章,介绍一个简单的JNI的... 阅读全文