Use ms_get_jni_env instead of doing it manually in java wrapper

2 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed jenkins

failed jenkins

00:02:42