a4730dd57e
Otherwise the test would invoke the "java" executable from PATH, which might not be 1.8, and that would cause some tests to fail because error messages are slightly different in newer Java versions.