wrong JNI version fix

This commit is contained in:
Adrian Tiberius 2016-07-04 00:46:05 +03:00
parent e7a8371fe2
commit 0b34f85a43
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved)
{
bool detach;
JNIEnv *env;
bool result = JNI_VERSION_1_6;
int result = JNI_VERSION_1_6;
gJavaVM = vm;
@ -88,7 +88,7 @@ bool JniLibraryInit( JNIEnv *env )
{
int i;
JavaClassPtr_GethService = (*env)->FindClass( env, "com/statusim/GethService" );
JavaClassPtr_GethService = (*env)->FindClass( env, "com/statusim/geth/service/GethService" );
if (JavaClassPtr_GethService == NULL) return false;
JavaClassPtr_GethService = (jclass)(*env)->NewGlobalRef( env, JavaClassPtr_GethService );
if (JavaClassPtr_GethService == NULL) return false;