Top "Java-native-interface" questions

The Java Native Interface (JNI) gives both the ability for JVM implementations to run system native code and the ability for native code to run Java code (by creating new JVM instances).

Keeping a global reference to the JNIEnv environment

I am storing off JNIEnv in a global so I can call static java methods later. But is it nessasary …

c java-native-interface jnienv
how to convert jobject to jstring

I am trying to get a string in return to a function call from cpp to java. This is my …

java c++ java-native-interface cocos2d-x
How to print log messages with in Android framework

I am trying to print log messages within core Android framework files. For example, I tried logging messages within MediaRecorderClient.…

android java-native-interface logging native-code mediarecorder
How to use Existing .so file in android application

I was searching for library which should convert .doc/.docx to .pdf in android platform. I got PdFTron android sdk,…

android pdf java-native-interface pdftron pdfnet
Callback Listener in Unity - How to call script file method from UnityPlayerActivity in Android

I have an android library project and imported the library project in the Unity project. Now, I want to implement …

java c# android unity3d java-native-interface
JNI %1 is not a valid Win32 application

I'm running Netbeans on 64-bit Windows 8, with JDK 1.7_25 (64-bit), following the instructions for the Beginning JNI with NetBeans (https://netbeans.…

java dll java-native-interface 64-bit unsatisfiedlinkerror
JNI in C++ to read file to jbyteArray

I am writing a C++ program in UNIX to generate a shared library which will be called in java using …

java c++ java-native-interface jnienv jniwrapper
Android NDK overflows dalvik JNI local reference table

I have the following problem, from c++ I send huge string[] to java. huge = at most 20 rows; I am doing …

android java-native-interface dalvik android-ndk
Can OpenCV for Android leverage the standard C++ Support to get native build support on Android Studio 2.2 for Windows?

There are many questions and answers surrounding getting native opencv for android building properly. Some use gradle, others use external …

windows android-studio cmake java-native-interface opencv4android