摘要: 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的... 阅读全文
posted @ 2013-04-22 16:18 狼哥2 阅读(137) 评论(0) 推荐(0) 编辑