- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
JNI – C++ integration made easy.PDF
JNI – C++ integration made easy
Evgeniy Gabrilovich Lev Finkelstein
gabr@ lev@
Abstract
The Java Native Interface (JNI) [1] provides interoperation between Java code running on
a Java Virtual Machine and code written in other programming languages (e.g., C++ or
assembly). The JNI is useful when existing libraries need to be integrated into Java code,
or when portions of the code are implemented in other languages for improved
performance. The Java Native Interface is extremely flexible, allowing Java methods to
invoke native methods and vice versa, as well as allowing native functions to manipulate
Java objects. However, this flexibility comes at the expense of extra effort for the native
language programmer, who has to explicitly specify how to connect to various Java
objects (and later to disconnect from them, to avoid resource leak). We suggest a
template-based framework that relieves the C++ programmer from most of this burden.
In particular, the proposed technique provides automatic selection of the right functions
to access Java objects based on their types, automatic release of previously acquired
resources when they are no longer necessary, and overall simpler interface through
grouping of auxiliary functions.
Introduction
1
The Java Native Interface is a powerful framework for seamless integration between
Java and other programming languages (called “native languages” in the JNI
terminology). A common case of using the JNI is when a system architect wants to
benefit from both worlds, implementing communication protocols in Java
您可能关注的文档
- Effective C++ 解读.PDF
- ENG224 INFORMATION TECHNOLOGY – Part I.PPT
- EXPERIENCE WITH URETEROSCOPY IN CHILDREN”.PPT
- Flash综合实例“蝶舞飞扬”动画制作.DOC
- GM1302 C 语言参考程序.PDF
- JAS – Distributed Data Analysis.PPT
- Jun PengStanford University – Department of Civil and .PPT
- Linear Lists – Array Representation.PPT
- Lishang-wanglai (礼尚往来): A Chinese.PDF
- Luaglue 说明文档.DOC
- 电工(高级)资格证考试考前冲刺练习题(黄金题型)附答案详解.docx
- 电工(高级)资格证考试考前冲刺练习题(易错题)附答案详解.docx
- 电工(高级)资格证考试考前冲刺练习题(巩固)附答案详解.docx
- 电工(高级)资格证考试考前冲刺练习题(巩固)附答案详解.docx
- 电工(高级)资格证考试考前冲刺练习题(考试直接用)附答案详解.docx
- 电工(高级)资格证考试考前冲刺练习题(能力提升)附答案详解.docx
- 电工(高级)资格证考试考前冲刺练习(名校卷)附答案详解.docx
- 电工(高级)资格证考试考前冲刺练习题(网校专用)附答案详解.docx
- 创新教育实践与跨学科能力培养方案.pptx
- 电工(高级)资格证考试考前冲刺练习题(夺冠系列)附答案详解.docx
最近下载
- 危重病人抢救应急演练方案.pdf
- XP-1A SF6定性检漏仪说明书.pdf VIP
- 《贝聿铭建筑设计》课件.ppt VIP
- 河北大学2024-2025学年第1学期《高等数学(上)》期末考试试卷(A卷)附参考答案.pdf
- 2023年西南大学软件工程专业《计算机组成原理》科目期末试卷B(有答案).docx VIP
- 《3~6岁智力残疾儿童康复训练及支持性服务规范》.pdf VIP
- 河北大学2021-2022学年第1学期《高等数学(上)》期末考试试卷(A卷)及标准答案.pdf
- 河北科技大学2021-2022学年第1学期《高等数学(上)》期末考试试卷(B卷)及标准答案.pdf
- 光电探测器仿真:多物理场耦合仿真_(10).多物理场仿真软件介绍.docx VIP
- 数学三下 应用题.ppt VIP
原创力文档


文档评论(0)