1.找到javah命令所在的目錄
個人爲 /usr/bin/javah
2.打開eclipse
如圖點擊第二項
3.配置 如圖
${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 java