> If it helps your error recovery codepaths, you can easily throw a custom
> Java exception from C++ using something like:
> jclass cls = env->FindClass("my/package/JNIException");
> env->ThrowNew(cls, "Error in JNI code!");
I know I can do it manually but that isn't what I want.
What I want is the virtual machine should automatically throw an
exception when something wrong happens in JNI calls.
Currently it simply close the whole app give us no chance.
HanWriting
(CJK+Eng Handwriting Recognition)