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

running java 5/6 with JNI on java 7 gives stack guard warning

A java program built with 1.5 (or 1.6 with 1.5 comparability mode on) gives this warning: Java HotSpot(TM) Server VM warning: You …

java java-native-interface guard
Event listener in Java without app having focus? (Global keypress detection)

I've been searching for a while and everybody seems to think this is not possible using just Java, so I'll …

java java-native-interface listener keylistener
Write to stdout in JNI Android? Without <android/log.h>

I have changed the HelloJni sample of the android ndk, I want to write something to the stdout. Here is …

android android-ndk java-native-interface logcat stdio
JNI - Passing large amounts of data between Java and Native code

I am trying to achieve the following: 1) I have a byte array on the java side that represents an image. 2) …

java java-native-interface graphicsmagick
Java JNI call to load library

Does it impact memory if I have two Java classes that have native calls to compiled C code and I …

java loadlibrary java-native-interface
How to create a BMP file from raw byte[] in Java

I have a C++ application which communicates with a camera and fetches raw image-data. I then have a Byte[] in …

java c++ image java-native-interface bmp
Javah Error android.app.Activity not found

I'm trying to create a .h header file for a simple NDK project. Using cygwin I browse to myprojectDIR\jni …

android android-ndk java-native-interface javah
Manipulation of ByteBuffer from JNI

I need to pass a (direct) ByteBuffer to native functions that will read/write from/into the buffer. Once these …

java java-native-interface bytebuffer
Javah command for native methods gives Exception

I entered this into command prompt and I'm not sure why it is saying that it is not a valid …

java java-native-interface javah
Why do some Android phones cause our app to throw an java.lang.UnsatisfiedLinkError?

We're experiencing a java.lang.UnsatisfiedLinkError on some of the Android phones that are using our app in the market. …

android android-ndk java-native-interface native unsatisfiedlinkerror