How can I throw an exception from JNI code?

Davanum Srinivas

jclass excCls = (*env)->FindClass(env, 
    "java/lang/IllegalArgumentException");
if (excCls != 0)
    (*env)->ThrowNew(env, excCls, "thrown from native code");
About | Sitemap | Contact