1.找到javah命令所在的目录
我的为 /usr/bin/javah
2.打开eclipse
[img]http://dl2.iteye.com/upload/attachment/0087/1011/88bc2374-e4e0-3229-8368-9867f6823e0c.png[/img]
如图点击第二项
3.配置 如图
[img]http://dl2.iteye.com/upload/attachment/0087/1016/7ed69357-e0bf-3260-9b50-e234c0fe8173.png[/img]
${project_loc}/src
-classpath ${project_loc}/bin/classes -d ${project_loc}/jni -jni ${java_type_name}
是根据
$PROJECT_DIRECTORY/src$ javah -classpath ../bin/classes bt.nativeclient.BtnativeActivity
我的为 /usr/bin/javah
2.打开eclipse
[img]http://dl2.iteye.com/upload/attachment/0087/1011/88bc2374-e4e0-3229-8368-9867f6823e0c.png[/img]
如图点击第二项
3.配置 如图
[img]http://dl2.iteye.com/upload/attachment/0087/1016/7ed69357-e0bf-3260-9b50-e234c0fe8173.png[/img]
${project_loc}/src
-classpath ${project_loc}/bin/classes -d ${project_loc}/jni -jni ${java_type_name}
是根据
$PROJECT_DIRECTORY/src$ javah -classpath ../bin/classes bt.nativeclient.BtnativeActivity