java: handle new failure mode for JVM MLE
java: handle new failure mode for JVM MLE

"Newer" (post-Java 8) JVMs regressed a bit in terms of handling out-of-memory situations during
initialization, whereby they now dump a crash log rather than exiting with
java.lang.OutOfMemoryError. Handle this case so that we don't erroneously emit internal errors.
DMOJ/judge,DMOJ/judge,DMOJ/judge