Detect when run on the JVM.