changes to address issue #6 JNI routines should not save JniEnv