Check that java is present and on the right version.