转自:http://blog.csdn.net/henren555/article/details/9324849 1. 点击eclipse工具栏外部工具按钮,打开配置外部工具
2. 新建一个启动配置,起名为javah,按照下图配置好相应的参数
Location: C:\Program Files\Java\jdk1.6.0_25\bin\javah.exe Working Directory: ${project_loc} Arguments: -v -classpath "${project_loc}/bin/classes" -d "${project_loc}/jni" ${java_type_name} 3. 运行该工具时,请确保光标在需要生成头文件的java源文件中 |
|