Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the method of calling each other between java jni and C++ dll

Shulou Source: shulou.com Published: 2022-06-01 20:49:34 10月03日 Update

This article mainly explains the "java jni and C++ dll mutual transfer method is what", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "what is the mutual transfer method of java jni and C++ dll?"

1.class compilation

If there is a referenced object, javac will make a compilation error, compile the whole project directly, and then put the file in the same directory as the java file.

2.h header file generation, always does not work, error, finally found that it is the package path problem

As shown in the figure above, the instruction must first enter the java directory, and then execute javah

Chinese coding problem

Thank you for your reading, the above is the content of "what is the method of mutual call between java jni and C++ dll". After the study of this article, I believe you have a deeper understanding of what the method of mutual call between java jni and C++ dll is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Methods Clearing compiling files problems learning contents directories no pictures above objects that is ideas situations instructions articles more knowledge knowledge points articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Apple vpn Shulou Tech Info