CodeBlocks生成jni用的dll库文件.docVIP

  • 18
  • 0
  • 约2.33千字
  • 约 3页
  • 2017-05-31 发布于北京
  • 举报
Code::Blocks生成jni用的dll库文件 下面以Hello World 为例来说明 (1)java源程序,有一个native方法,输出hello world ? Java代码 import?java.io.IOException; ?? ?? public?class?helloworld?{ ?? ????static{ ?? ????????System.loadLibrary(helloworld); ?? ????} ?? ?? ????public?static?native?void?printit(); ?? ?? ?????????????public?static?void?main(String[]?args)?{????????????????????helloworld?h?=?new?helloworld(); ?? ????????h.printit(); ?? ???????? ?? ????} ?? }?? import java.io.IOException; public class helloworld { static{ System.loadLibrary(helloworld); } public static native void printit(); public static voi

文档评论(0)

1亿VIP精品文档

相关文档