1. Click on the Eclipse top toolbar "Run", then select "External Tools" in the drop-down list and select "External Tools Configurations" to open the configuration external tool, usually open after
2. New (select program, right-click to see the new option) a boot configuration, named Javah (can be arbitrarily named)
Here are three things to fill out
Location: Fill in the absolute path of your javah.exe, such as D:\Program files\java\jdk1.7.0_67\bin\javah.exe
Working Directory: Fixed Write ${project_loc}
Arguments: -v-classpath" ${project_loc}/bin/classes "-D" ${project_loc}/jni "-jni ${java_type_name} (Android engineering)
-v-classpath "${project_loc}/bin"-D "${project_loc}/jni"-jni ${java_type_name} (Java engineering notation)
if the arguments option is not as confusing as Java and Android, You might as well go into the Java project directory and look at the. Class directory, you will find that the Java Project Class directory for the bin/package/.class,android project's class directory for the bin/classes/package/.class
3. When running the tool, make sure that the cursor is in the Java source file where the header file needs to be generated
Eclipse Configuration External Tool compiles the build header file with Javah