Eclipse Configuration External Tool compiles the build header file with Javah

Source: Internet
Author: User

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

Related Article

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.