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

Converting from const char * to LPTSTR without USES_CONVERSTION

I am trying to convert const char * to LPTSTR. But i do not want to use USES_CONVERSION to perform …

c++ java-native-interface lptstr
uint64_t to int

I'm writing a java binding for a C code and I'm not really familiar with C. I have a uint64_…

c java-native-interface casting uint64
How to properly use NDK-Build in Android Studio 2.2 Preview 1

Android Studio 2.2 Preview 1 has a new external ndk build feature, but from app/build.gradle snippet shown in official blog …

android android-ndk java-native-interface android-studio-2.2
Pinning a Java application to the Windows 7 taskbar

I use Launch4j as a wrapper for my Java application under Windows 7, which, to my understanding, in essence forks …

java windows-7 java-native-interface launch4j taskbar
Access to raw data in ARGB_8888 Android Bitmap

I am trying to access the raw data of a Bitmap in ARGB_8888 format on Android, using the copyPixelsToBuffer and …

android bitmap java-native-interface alpha-transparency argb
android - javah doesn't find my class

I am having troubles generating the C header file for JNI using javah. Here's the script I use while standing …

android java-native-interface android-ndk javah
Looking for a convenient way to call Java from C++

It seems most documentation or helper libraries relating to JNI (Java Native Interface) are concerned with calling native code from …

java java-native-interface swig invocation
Rotating a bitmap using JNI & NDK

Background: I've decided that since bitmaps take a lot of memory which can cause out-of-memory errors easily, I will put …

android bitmap android-ndk java-native-interface image-rotation
How to remove native support from an Android Project in eclipse because eclipse is showing errors in jni?

I accidentally clicked on "Add Native Support" inside "Android Tools"... That messed up all the jni files of my project. …

android eclipse android-ndk java-native-interface
com4j on Windows 64 bit

I've downloaded the latest com4j jars and I'm trying to run through the most simple of their examples. I'm …

java com java-native-interface native-code com4j