首页 | 本学科首页   官方微博 | 高级检索  
     

通过Java调用本地方法
引用本文:安百俊,高栋,张伟,韩俊杰.通过Java调用本地方法[J].微处理机,2011,32(2):41-44.
作者姓名:安百俊  高栋  张伟  韩俊杰
作者单位:中国航空计算技术研究所,西安,710068
摘    要:Java是纯面向对象的语言,是当前最流行的编程语言之一。在对程序执行效率要求更高,或需要调用已有的非Java库,或调用Java类库未提供但可用其他语言实现的接口时,需要用到本地方法。分析了从Java调用本地方法的意义;各种调用本地方法的方案及其适用环境;剖析了JNI的原理和结构,给出详细的实现步骤,并说明使用JNI带来的问题。

关 键 词:Java语言  JNI技术  本地方法

Java Native Method Calls
AN Bai-jun,GAO Dong,ZHANG Wei,HAN Jun-jie.Java Native Method Calls[J].Microprocessors,2011,32(2):41-44.
Authors:AN Bai-jun  GAO Dong  ZHANG Wei  HAN Jun-jie
Affiliation:AN Bai-jun,GAO Dong,ZHANG Wei,HAN Jun-jie (Aeronautical Computing Technique Research Institute,Xi'an 710068,China)
Abstract:Since Java's Object-Orient,which is one of the most popular programming langue.We may Invoke Native Interface when in high performance environment,or call the existing bug non-Java library,or call the new created interface not by Java.We analyzed why using Native Interface In Java;the 6 ways and it's portable environment;Specifically,introduced JNI's structure,implied a sample step by step,showed the disadvantage of JNI.
Keywords:Java  JNI  Native Interface  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号