-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2019-09-06:什么是JNI?具体说说如何实现Java与C++的互调? #142
Comments
我是来看答案的。 |
The Java Native Interface (JNI) is a standard to integrate in a portable way C++ and Java code. It works in both directions: you can call a C++ library from Java or you can call Java components from C++. In this tutorial, I'll explain the second approach.
|
1: java 调用 c++ 方法, 通过 java类定义 native 方法, 使用javah 生成.h 头文件,定义cpp文件实现该方法, java 层就可以直接调用该方法了。 |
|
The text was updated successfully, but these errors were encountered: