How can I throw an exception from JNI code?
Created Jun 14, 2000
Davanum Srinivas
jclass excCls = (*env)->FindClass(env,
"java/lang/IllegalArgumentException");
if (excCls != 0)
(*env)->ThrowNew(env, excCls, "thrown from native code");