java-native-interface
JNI EnsureLocalCapacity -- WHY?
Have a look at the JNI docs here: http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html[详细]
2023-03-29 00:29 分类:问答Can I create an object only used by each Thread in JNI?
In Java I create some Threads, and they call the same native method like: public native String go(String str);[详细]
2023-03-28 12:04 分类:问答Openssl X509_set_pubkey() Crash in Android NDK
I am trying to make the most basic x509 public key cert file possible on Android in C via the NDK.I built libcrypto and libssl (although I am currently only using libcrypto stuff) with the stuff from[详细]
2023-03-28 11:52 分类:问答JNI FindClass fails with imports
I\'m trying to call my java class from c++ (ms vc 2008) with JNI, but the problem is that FindClass works only when there are not imported packages in my java class. If I add any package (for example[详细]
2023-03-28 11:49 分类:问答What is the object lifetime of a jstring in JNI?
I don\'t have much knowledge about JNI and how things are handled inside JNI environment. I have a simple questio开发者_运维技巧n.[详细]
2023-03-28 11:07 分类:问答Problem passing byte[] via jni to C on Android
I have a byte[] in Java which reports its length as 256 bytes which I pass to a native function in C.[详细]
2023-03-28 01:49 分类:问答<native.h> missing, any idea where that should be?
I\'ve been tasked to recompile an old (2005) DLL from 32bits to 64bits. The projects first told me that <jni.h> could not be found, upon searching, I found that I needed to add an include dire[详细]
2023-03-28 00:03 分类:问答Android - JNI - Recovering MyException members through JNI
In my Java code I create MyException class (extending Exception class) with the getCustomCode() method.[详细]
2023-03-27 19:51 分类:问答SIGSEGV When Accessing Link Parser Through JNI
The server I\'m trying to set this up on has Red Hat Enterprise Linux Server 5.4 64-bit. We\'ve compiled and installed Link Parser 4.6.7 (64-bit) as well as both JDK5 and JDK6 64-bit.[详细]
2023-03-27 07:32 分类:问答JNI interface pointer confusion
I keep seeing the env interface pointer used with and without dereferencing, for example env->DoSomething(arguments)[详细]
2023-03-26 23:35 分类:问答