1、JNI简介
The Java Native Interface (JNI) is a programming framework that enables Java code running in a Java Virtual Machine (JVM) to call and be called by[1] native applications (programs specific to a hardware and operating system platform) and libraries written in other languages such as C, C++ and assembly.
--引用于wiki
官方文档:
https://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/jniTOC.html
2、Java调用C
2.1、java类文件中定义本地方法,其他方法调用此本地方法
2.2、编写本地方法的实现
2.3、调用非JNI规范的C方法
3、C调用Java
时间: 2024-10-22 02:09:05