java-native-interface
JNI crashes when calling CallVoidMethod
I\'m trying to call a java method from native C code in an Android Application. This sounds quite simple with the usage of JNI, but my code always crashes when finally calling the method itself.[详细]
2023-04-06 19:50 分类:问答using native code in java servlets (Server side)
I have a c library which i am using in my application on various platforms. Currently, I am planning to develop a web service using same c library using JNI. I will host this webservice using some app[详细]
2023-04-06 16:13 分类:问答JNI and UnsatisfiedLinkError
I\'m doing my first steps with JNI and tried to write a simple Hello Java program, but it fails with this error:[详细]
2023-04-06 16:03 分类:问答Packaging a jre with my application
My application contains an c++ exe file which invokes a java program using JNI, thus requiring jvm.dll. However, I want my application to ship with its own embedded jre but after I copy the jre6 folde[详细]
2023-04-06 11:25 分类:问答Loading methods of a specific class from a C++ library using JNI
I have a C++ library xyz. It has many classes like xyzA, xyzB etc. I want to use the method getAge() from the class xyzA which is in the xyz library.[详细]
2023-04-06 10:21 分类:问答JNI- FindClass returns null
I know it is a common problem, i searched google and look at everything in first 4 pages, have tried many possibilities but no result so far.[详细]
2023-04-06 08:46 分类:问答JNI Poll problem
I write a native method that could receive data from socket and then write back to a ByteArray which is input parameter from Java. The socket was created in BlueZ and transmitted to my program by dBus[详细]
2023-04-05 21:09 分类:问答JNI and accessing a subclass
I have a Java program that communicates to a C program.I have written JNI before but my output structure was more simplistic and the C structure just contained doubles/ints and arrays of doubles/ints.[详细]
2023-04-05 18:22 分类:问答Android JNI native C++ code GetPrimitiveArrayCritical() problem
I want to write a native method that could receive data from socket and then write back to a ByteArray which is input parameter from Java. Because I allocate ByteArray in Java side, and pass it to nat[详细]
2023-04-05 14:51 分类:问答Android JNI String Problem
JAVA_CODE: public class Employee { private int age; private String name; public Employee(int age, String name) {[详细]
2023-04-05 12:45 分类:问答