Can't store JNIEnv pointer and use it in another thread.  Instead, store JavaVM pointer
and attach to current thread.