摘要
作为近年来新兴的Java编程语言势必要与已经由其他高级语言编写的服务器、应用接口工具包及程序相结合,因此Java平台提供本地接口JNI来简化这一过程.本文将叙述如何使用JNI在Java编写的程序中调用其他高级语言编写的本地库和本地方法,并用一个实例来说明如何应用JNI来解决Java语言与其他高级语言之间的通讯问题.
Being a relatively new programming language, Java needs to integrate its programs with existing non-Java language services, API toolkits, and programs.Java platform provides the Java Native Interface (JNI) to help ease this type of integration.This paper explains how to use JNI in programs written in the Java programming language to call any libraries on the local machine, call Java method from inside native code, and brings an instance to show how to put JNI into use.
出处
《广西大学学报(自然科学版)》
CAS
CSCD
2005年第1期6-9,共4页
Journal of Guangxi University(Natural Science Edition)
关键词
JAVA虚拟机
JAVA本地接口
动态链接库
本地方法声明
JVM(Java Virtual Machine)
JNI(Java Native Interface)
DLL(Dynamic Linking Library)
native method declaration