资 源 简 介
JAVA以其跨平台的特性深受人们喜爱,而又正由于它的跨平台的目的,使得它和本地机器的各种内部联系变得很少,约束了它的功能。解决JAVA对本地操作的一种方法就是JNI。
JAVA通过JNI调用本地方法,而本地方法是以库文件的形式存放的(在WINDOWS平台上是DLL文件形式,在UNIX机器上是SO文件形式)。通过调用本地的库文件的内部方法,使JAVA可以实现和本地机器的紧密联系,调用系统级的各接口方法。
-JAVA characteristics of its cross-platform very popular, and because it is the purpose of cross-platform, making it the local machine to become small internal contact, the functions of its binding. JAVA solution on the local operation is a method of JNI. JAVA through JNI to call native methods, and the local method is based on the form of library files stored (in the WINDOWS platform are on the form of DLL files, in the UNIX machines are SO on the form of a document). By calling the local library file internal methods, so that JAVA and local machine can achieve close contact, call the system-level methods of the interface.