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

Java与C/C++的结合
引用本文:曹敬,高璟.Java与C/C++的结合[J].计算机与现代化,2005(11):112-115.
作者姓名:曹敬  高璟
作者单位:河海大学计算机信息及工程学院,江苏,南京,210098
基金项目:苏州市水环境质量改善与综合示范项目,国家863项目(2003AA601070).
摘    要:JNI是JDK提供的本地编程接口,它允许Java代码操作其他语言编写的应用程序和库,但调用本地方法的同时也带来了安全问题.CORBA是一个分布式的、面向对象的应用架构规范,它允许对象在异构的、分布式的环境中透明传输,从而也能实现Java与C/C+ +的互操作.本文比较了JNI和CORBA两种方法的优缺点,并将CORBA应用在一个J2EE架构下的项目中,解决了项目中Java与C/C+ +的交互问题.

关 键 词:遗留系统  Java本地接口  通用对象请求代理结构  对象请求代理
文章编号:1006-2475(2005)11-0112-04
收稿时间:2004-12-31
修稿时间:2004年12月31

Analysis and Application of Two Ways for Interoperability of Java and C/C+ +
CAO Jing,GAO Jing.Analysis and Application of Two Ways for Interoperability of Java and C/C+ +[J].Computer and Modernization,2005(11):112-115.
Authors:CAO Jing  GAO Jing
Abstract:Java native interface(JNI) is the native programming interface for Java that is a part of JDK,it allows Java code to operate with applications and libraries written in other languages.At the same time the security problem follows.CORBA is a specification of a distributed object-oriented computing architecture.It provides interoperability between objects in a heterogeneous,distributed environment and in a way transparent to the programmer.CORBA can be used for interoperability of Java and C/C++.This paper compares JNI and CORBA,then analyses an application of CORBA in one project under J2EE.In this project,CORBA solves the problems of interoperability of Java and C/C++.
Keywords:legacy system  JNI  CORBA  ORB
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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