Fixes #5760: Check the Java version before trying to run Jetty