Android JNI development generates. h header File issues

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.