Borneq

throwJNI.cpp

Sep 5th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <jni.h>
  2.  
  3. jint throwUnsatisfiedLinkError( JNIEnv *env, char *message )
  4.  
  5. {
  6. jclass       exClass;
  7. char        *className = "java/lang/UnsatisfiedLinkError" ;
  8.  
  9.     exClass = env->FindClass( className );
  10.     if ( exClass == NULL )
  11.     {
  12.         return throwUnsatisfiedLinkError( env, className );
  13.     }
  14.  
  15.     return env->ThrowNew(exClass, message );
  16. }
Advertisement
Add Comment
Please, Sign In to add comment