falling back to java only if running in jvm