摘要
Java语言是目前信息产业界最热门的语言,但是Java语言并不是万能的,如Java语言不能直接访问硬件,解决的方法是,可以通过Java调用由其他语言所编写的函数来实现对硬件的访问,如C或C++语言。文章通过实例介绍了一种如何实现在Java程序中调用C或C++函数的方法。
The java language is the most popular language in Current infon'nation field, but the Java language is not multi-purpose, like the Java language cannot directly access the hardware. Then, the solution method is call the function through Java which compiles by other languages to implement visit to the hardware, like C or C++ language . This article introduced a method how to call C or C++ function in the Jave program through the example.
出处
《长治学院学报》
2006年第2期29-30,共2页
Journal of Changzhi University
关键词
接口
JAVA虚拟机
JNI
类库
Interface
Java Virtual Machine
Java Native Interface
class libraries