java: Print a better error message when JVM version is too old.

This fixes commit 87d1f7714f8e1b0f595bad3b7932592f0f85d54b.