生成JNI的DLL时提示找不到jni.h的解决办法(fatal error C1083: Cannot open include file: 'jni.h':).
来源:互联网 发布:网络矩阵价格 编辑:程序博客网 时间:2024/06/05 10:54
引用
环境:Winxp+VC6.0
过程:编绎生成Dll文件时出错
首先是关于dll文件的生成:
方法如下:
打开VC++6.0,新建->; 工程 ->; win32 Dynamic-Link Library在向导中选择空工程
添加如用javah生成的头文件和自己写的一个cpp文件,然后编译运行,如果没有出现错误,既可以在编译成功的debug文件夹中找到dll文件,如果出现找不到jni.h的错误,那么用如下方法解决:
fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
引用
将以下文件:
Java代码
- \jdk\include\jni.h
- \jdk\include\win32\jawt_md.h
- \jdk\include\win32\jni_md.h
复制到Visual Studio.net的安装目录下的\Vc7\include目录中
如果是VC6.0,自己找相应的目录即可!
- 生成JNI的DLL时提示找不到jni.h的解决办法(fatal error C1083: Cannot open include file: 'jni.h':).
- 关于dll文件的生成以及找不到jni.h的解决办法(fatal error C1083: Cannot open include file: 'jni.h':)
- 生成JNI的DLL时提示找不到jni.h的解决办法Cannot open include file: 'jni.h': No such file or directory
- 生成JNI的DLL时提示找不到jni.h的解决办法Cannot open include file: 'jni.h': No such file or directory
- fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
- fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
- 生成JNI的DLL时提示找不到jni.h的解决办法
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- fatal error C1083: Cannot open include file: 'qwtplot.h':
- fatal error C1083: Cannot open include file: 'uxtheme.h'的解决
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- fatal error C1083: Cannot open include file: 'htmlhelp.h': No such file or directory 解决办法
- 关于“fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory”的问题
- Microsoft Visual Studio6.0\VC98\INCLUDE\userenv.h(15) : fatal error C1083: Cannot open include file:
- JAVA的IO流学习中(1)
- hdu 2152 母函数
- 【OSC手机App技术解析】- 用户通知
- 有关脱壳以及脱壳实例讲解
- 计算网站有效PV注意事项
- 生成JNI的DLL时提示找不到jni.h的解决办法(fatal error C1083: Cannot open include file: 'jni.h':).
- javascript 字符串函数 以及 字符串转别的类型
- Java 构造函数能被继承吗
- Python自动单元测试框架
- 安卓本地存储
- ps学习——合并拷贝
- 进行Java Web项目开发需要掌握的技术[转载]
- VS2010中CMainFrame::OnCreate()函数里用GetMenu()无法获取菜单指针
- sbjson解析json数据遇到JSONValue failed. Error is: Illegal start of token [Ô]解决办法