fatal error C1083: Cannot open include file: 'jni.h': No such file or directory

1、File->new Project->Visual C++->Win32->Win32 Project(输入完工程名)->ok->next->DLL->Finish. 然后你编译,在对应的Debug文件或Release文件夹里面就有这个工程的dll了

2、fatal error C1083: Cannot open include file: 'jni.h': No such file or directory

3、就是到jdk的安装目录下include下把以下相应的文件

\jdk\include\jni.h

\jdk\include\win32\jawt_md.h

\jdk\include\win32\jni_md.h

4、 分别复制它们到vc目录下的include文件夹下\include目录中

你可能感兴趣的:(fatal error C1083: Cannot open include file: 'jni.h': No such file or directory)