调用
// 演示中模拟第3方的动态库extern \"C\
Lib4JNI.c
Lib2Invoke.c
TestJNI.h
/* DO NOT EDIT THIS FILE - it is machine generated */#include <jni.h>/* Header for class TestJNI */#ifndef _Included_TestJNI#define _Included_TestJNI#ifdef __cplusplusextern \"C\
javac TestJNI.java
javah TestJNI`
TestJNI.java
Lib4JNI.dll
TestJNI.class
VS 2022生成
Lib2Invoke.dll
x:>java TestJNI200