different way to get JNIEnv