Research,Design,and Practice of Java Native Interface Technology
This article investigates the mechanism of interaction between Java programs and native code,which is achieved by providing a set of interfaces between the Java Virtual Machine(JVM)and native code.JNI can be used to access native libraries,functions,and data structures.Through the implementation of specific examples,it has been verified that the advantages of the local platform are fully utilized while maintaining Java platform independence.