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

jni.h: no such file or directory

I'm using Code::Blocks in windows. I created a dll project trying to get some JNI practice. In my .h …

java java-native-interface codeblocks
How to create an object with JNI?

I need to implement some functions into an Android application using NDK and thus JNI. Here's the C code, with …

java android java-native-interface android-ndk
How to set the java.library.path in intelliJ Idea

Could anyone please help how do I solve this error: Native code library failed to load. java.lang.UnsatisfiedLinkError: no …

java intellij-idea java-native-interface resin
Extract code from .aar file Android

How do I extract code from aar file.[Accidentally my main project is on another system can't access only have …

android android-ndk java-native-interface
How to get "printf" messages written in NDK application?

if i am defining such function in java file /** * Adds two integers, returning their sum */ public native int add( int …

android c android-ndk java-native-interface logging
Any simple way to log in Android NDK code?

I'm looking for a way to easily debug C code in an Android NDK application using Eclipse. I've read ways …

android c logging android-ndk java-native-interface
How to obtain JNI interface pointer (JNIEnv *) for asynchronous calls

I have learned that the JNI interface pointer (JNIEnv *) is only valid in the current thread. Suppose I started a …

java c multithreading java-native-interface
How can I catch SIGSEGV (segmentation fault) and get a stack trace under JNI on Android?

I'm moving a project to the new Android Native Development Kit (i.e. JNI) and I'd like to catch SIGSEGV, …

android java-native-interface signals android-ndk segmentation-fault
Linking using g++ fails searching for -lstdc++

I'm trying to use someone else's Makefile to complile a very simple c++ library. The makefile is as follows: JNIFLAGS=…

linker g++ makefile java-native-interface libstdc++
Convert JNI types to Native types

While there is documentation regarding turning a jstring to a native string (string nativeString = env->GetStringUTFChars(jStringVariable, NULL);) I …

java-native-interface android-ndk