JNI Program Development

Source: Internet
Author: User

Resources:

http://blog.csdn.net/wwj_748/article/details/28136061jni_ The simplest Java Call C + + code

http://blog.csdn.net/xyang81/article/details/41777471JNI/NDK Development Guide (i)--JNI development process and HelloWorld

?

Here are a few questions I've encountered:

    1. When I returned data from C + +, I found a problem. Eclipse dies directly. (Virtual machine dead)
    2. We have to build the DLL under the 64-bit system.

?

    1. Writing. Java (interface)
    2. Build. Class is automatically generated after compiling
    3. Java generation. h
    4. Open vs2010 write a. cpp file (or. c file)
    5. Generating. dll files
    6. Put the DLL file into the environment variable
    7. Load the library file in Eclipse, run the program

. java file

In VS, you need to add some header files under the JDK and need to be copied to the folder under Eclipse, which requires the IDE to be restarted.

. h file

. cpp Files

JNI Program Development

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.