java-native-interface
ndk-gdb crashes JNI
The gdbserver shipped with the android-ndk has some really odd behaviour. The example below crashes instantly as soon as one step is taken, while running it without debugging works perfectly fine:[详细]
2023-04-03 14:02 分类:问答how to modify the value of a jstring passed to a C++ routine using Java and JNI?
Can I pass a string from Java to my C++ routine using JNI function calls and modify its value in the C++ routine?[详细]
2023-04-03 12:34 分类:问答Converting between jdoubleArray and vector<double> in a Java Native (JNI) method in C++
I have a C++ dll that contains methods that I need to use in a Java program. I\'ve been through all the Sun documentation on JNI, and numerous tutorials I found on the web, and I can\'t seem to find t[详细]
2023-04-03 11:14 分类:问答Accessing a SafeArray of Variants with JNI
I have a VB6 ActiveX DLL with functions that return a Variant. The Variant contains an array of node Variants, each of which contains a string Name and two data arrays (string and double). I am attemp[详细]
2023-04-03 02:49 分类:问答Is there a way to control visibility of the SWIG generated JNI class?
By default, SWIG generates the JNI class with public visibility.Is there a way to specify that the JNI class is only accessible within th开发者_StackOverflow社区e package? I found a solution.The follo[详细]
2023-04-02 16:36 分类:问答JNI issue on Linux: cannot open shared object file
I\'ve seen this question on here, tried the proposed fixes, but no success so far for me. I have quite some Java experience, but JNI is a long time ago, never did it on Linux though...[详细]
2023-04-02 14:57 分类:问答09▀30≈ß#@÷g gets displayed when i had not passed this String
I am trying to pass a String to a native c function but the String gets pri开发者_开发知识库nted as 09▀30≈ß#@÷g for the String Type a String : . I don\'t know what the problem is .[详细]
2023-04-02 14:53 分类:问答JNI lib crash, with a change in a .c file which is not included in the Makefile
We are facing an unusual problem, our JNI lib crashes at load time. we use CentOS 5.4/G++ and VS2005 for development.[详细]
2023-04-02 08:19 分类:问答In JNI Cannot using GetIntField get the value in the java class Android
I try to get the value in the Native class field mInt. This class is created by SimpleJNI. In this sample I set the mInt value to 9. JNI function add try to get the mInt value by using GetIntField. It[详细]
2023-04-02 03:56 分类:问答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 my concerns, that I wrote:[详细]
2023-04-02 01:56 分类:问答