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

Dynamically loading a native library inside Java applet

I am trying to write a Java applet that will read from a user's serial port. For this I am …

java applet java-native-interface rxtx
JNI. How to get jstring from jobject and convert it to char*

This is what I have so far: I pass an object which has 2 fields: String and Integer, as a parameter …

java c java-native-interface char-pointer
file is encrypted or is not a database (Exception net.sqlcipher.database.SQLiteException)

I'm trying to use sqlcipher lib to encrypt my database from already existing database but while accessing the old database(…

android database sqlite java-native-interface sqlcipher
How to create an Android RFCOMM socket without any input from the user?

Here's the scenario: I need to write an application for Android to create a RFCOMM socket to a PC with …

android bluetooth java-native-interface android-ndk rfcomm
Android MediaRecorder to record a Surface (not Camera)

I'm looking at the class MediaRecorder of the Android SDK, and I was wondering if it can be used to …

android video java-native-interface mediarecorder
How can I read the window title with JNI or JNA?

Looking to get back into the development space; primarily using Java to call some native win32 functions (I don't desire …

java winapi java-native-interface swig jna
install rJava - "configure: error: One or more JNI types differ from the corresponding native type"

I have came across this problem while installing rJava on R3.0.1: "configure: error: One or more JNI types differ from …

java r java-native-interface rjava
Android NDK import-module / code reuse

Morning! I've created a small NDK project which allows dynamic serialisation of objects between Java and C++ through JNI. The …

java-native-interface android-ndk import-module
Is it possible to debug core dumps when using Java JNI?

My application is mostly Java but, for certain calculations, uses a C++ library. Our environment is Java 1.6 running on RedHat 3 (…

java c++ debugging java-native-interface coredump
How to create a C header file using Javah?

I am using android ndk, and for that I am trying to create a c header file using the javah …

java android android-ndk java-native-interface javah