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");
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact