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

Where to find source code for java.lang native methods?

I'm vaguely familiar with the JNI, and I'm curious to see my machine-specific implementation for some native methods in the …

java java-native-interface native
ByteBuffer not releasing memory

On Android, a direct ByteBuffer does not ever seem to release its memory, not even when calling System.gc(). Example: …

android memory-leaks java-native-interface bytebuffer
Unable to install rJava in R 3.0 in Ubuntu 13.04

I am not able to call rJava package in R 3.0. I got the following message Error: package ‘rJava’ was built …

java r ubuntu java-native-interface rjava
Producing optimised NDK code for multiple architectures?

I have some C code for Android that does lots of low-level number crunching. I'd like to know what settings …

android c gcc java-native-interface android-ndk
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java249 in java.library.path

I'm currently trying to set up OpenCV on my 32-bit laptop, but I keep getting an error message which is …

java opencv java-native-interface java.library.path
How to add JNI (C/C++ native code) to existing Android Studio project

Like the title says - how to add native code to existing Android Studio project, without breaking the current project, …

android java-native-interface
Valgrind and Java

I want to use Valgrind 3.7.0 to find memory leaks in my Java native code. I'm using jdk1.6.0._29. To do that, …

java memory-leaks java-native-interface valgrind sse2
Getting active window information in Java

I am trying to upgrade my application in Java to work only if a window of process with certain name …

java java-native-interface jna
when to use JNIEXPORT and JNICALL in Android NDK?

I'm trying to write my own jni sources. Looking at some ndk samples, I found that they often use those …

android c++ macros android-ndk java-native-interface
How to cache bitmaps into native memory

For my 10,000 points, i've decided to contibute something with this cool website: a mechanism to cache bitmaps on native memory. …

android caching bitmap java-native-interface native