In-depth understanding of Android (3)-Integration of javah, NDK-Builder, and javahndk-builder with Eclipse

Source: Internet
Author: User

In-depth understanding of Android (3)-Integration of javah, NDK-Builder, and javahndk-builder with Eclipse

In the previous article, we used the javah tool to generate the C ++ header file corresponding to the native java file, but it is troublesome to generate this file, this article describes how to integrate javah and NDK-Builder in eclipse.

I. eclipse integration javah


Select External Tools Configurations...


The configuration above is explained as follows:

Location: the path of javah is configured here.

Working Directory: Path of the configuration project

Arguments: the required parameter.

Note: The configuration on linux or mac OS is as follows:

Working Directory -- $ {project_loc}/bin/classes

Arguments:-d $ {project_loc}/jni $ {java_type_name}

Ii. Configure NDK cross-compilation in eclipse


3. Add to the custom Toolbar


Select Organize Favorites...


Select javah and NDK_Builder and click OK. We can easily use these two tools.



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.