In the JNI development, the first is to compile the Anroid class into an. h file, compiled with the command Javah, because the first use, the previous Java compilation process is not very familiar, here to say:
Execution via DOS command, (1) Start-"run-" cmd-> into DOS command operator interface
Enter Javah com.example.huiduhua2.ImageProc on the command line
You can see the following results by entering Javah:
Usage: javah [options] < classes >
Where [options] include:
-help output this help message and exit
-classpath < paths > paths for loading classes
-bootclasspath < paths > paths for loading the boot class
-D < directory > output directory
-o < file > output file (only one in-D or-O is used)
-jni generating JNI-styled header files (default)
-version Output Version Information
-verbose Enable verbose output
-force always write to output file
Always error don't know why the mistake is not found class file who told me why ..... Give me a message, thank you.
Finally, there is no way to enter the full path directly: Create a new folder under Classes JNI
Finally gave me the resulting Cao ...
Please know why give me a message thank you. Full path can .... You can't do it directly in the catalog.
Android JNI development generates. h header File issues