1. javah --help
$ javah --help
Usage:
javah [options] <classes>
where [options] include:
-o <file> Output file (only one of -d or -o may be used)
-d <dir> Output directory
-v -verbose Enable verbose output
-h --help -? Print this message
-version Print version information
-jni Generate JNI-style header file (default)
-force Always write output files
-classpath <path> Path from which to load classes
-cp <path> Path from which to load classes
-bootclasspath <path> Path from which to load bootstrap classes
<classes> are specified with their fully qualified names
(for example, java.lang.Object).
2.eclipse
RUN->Extrnal tools -> External tools configurations -> program ->new lunacher configuration :
Name :
Location : ${system_path:javah}
Working directory : ${project_loc}
Arguments : -d "${project_loc}/jni/" -classpath "${project_classpath};${env_var:ANDROID_HOME}/platforms/android-18/android.jar" ${java_type_name}