in cxf-xjc-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java [466:478]
private File getJavaExecutable() throws IOException {
String exe = isWindows() && !javaExecutable.endsWith(".exe") ? ".exe" : "";
File javaExe = new File(javaExecutable + exe);
if (!javaExe.isFile()) {
throw new IOException(
"The java executable '"
+ javaExe
+ "' doesn't exist or is not a file. "
+ "Verify the <javaExecutable/> parameter.");
}
return javaExe;
}