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).

Use 32-bit jni libraries on 64-bit android

I've tried running an application using a native library on the Nexus 9. The application exits with an error message: java.…

android java-native-interface 32bit-64bit
Catching exceptions thrown from native code running on Android

The project I'm currently working on requires me to code up the android portion of a cross platform program implementation. …

android exception-handling java-native-interface android-ndk nullpointerexception
How to use the same C++ code for Android and iOS?

Android with NDK has support to C/C++ code and iOS with Objective-C++ has support too, so how can I …

java c++ java-native-interface cross-platform objective-c++
FindClass from any thread in Android JNI

Android's JNI tips page mentions this FAQ: Why didn't FindClass find my class? They mention multiple solutions and the last …

android c++ java-native-interface
JNI: converting unsigned int to jint

How do I convert an unsigned int to jint? Do I have to convert it at all, or can I …

java c++ java-native-interface unsigned-integer
How to use JNI bitmap operations for helping to avoid OOM when using large images?

Background most of the times, getting OOM on android is due to using too many bitmaps and/or creating large …

android bitmap android-ndk java-native-interface out-of-memory
JNI vs. JNA performance

We have a native c/asm application utilizing GPU(OpenCL) for a big encrypt/decrypt data with a specific method, …

java c concurrency java-native-interface jna
Unity3d integration with android

I need to create an android application which consists of parts written on Unity3d (animation and so on) and …

android plugins java-native-interface unity3d
Javah tool error: Could not find class file for hellojni

I am trying to create a header file using javah tool from command line on windows 7 OS but i am …

java java-native-interface javah