JNI is required in Java to call C + +.
The Java Nativie Interface (JNI, Chinese name Java Local interface) standard is part of the Java platform, which allows Java code to interact with code written in other languages. JNI is a local programming interface that enables Java code that runs within a Java Virtual machine (VM) to interoperate with applications and libraries written in other programming languages, such as C, C + +, and assembly language. The main purpose of JNI is to access hardware and to pursue efficient or reusable C + + libraries.
Reference text:
When you generate a JNI DLL, you are prompted not to find a jni.h solution cannot open include file: ' jni.h ': no such fileor directory
Locate the Include folder in the JDK installation directory containing the Win32 folder and the. h file.
Then copy the appropriate files below to the Include folder under the VC directory
\jdk\include\win32\jawt_md.h
\jdk\include\win32\jni_md.h
\jdk\include\jni.h
VC include in the path of C:\Users\apple\VisualStudio 2010\vs2010 Installpackage\vc\include
And then open vs,error and disappear.