jint JNI_OnLoad(JavaVM *vm, void *reserved) { JNIEnv *env = 0; srand(time(NULL)); if ((*vm)->GetEnv(vm, (void **) &env, JNI_VERSION_1_4) != JNI_OK) { return -1; } if (sqliteOnJNILoad(vm, reserved, env) == -1) { return -1; } gifOnJNILoad(vm, reserved, env); return JNI_VERSION_1_4; }
jint JNI_OnLoad(JavaVM *vm, void *reserved) { JNIEnv *env = 0; srand(time(NULL)); if ((*vm)->GetEnv(vm, (void **) &env, JNI_VERSION_1_6) != JNI_OK) { return -1; } if (sqliteOnJNILoad(vm, reserved, env) == -1) { return -1; } if (imageOnJNILoad(vm, reserved, env) == -1) { return -1; } if (registerNativeTgNetFunctions(vm, env) != JNI_TRUE) { return -1; } gifOnJNILoad(vm, reserved, env); return JNI_VERSION_1_6; }