if (suppliedJavaBase == null) {
//discover based on what's in the sys. property
try {
this.javaBase = new File(System.getProperty("java.home")).getCanonicalFile();
} catch (IOException e) {
throw new UncheckedException(e);
}
this.javaHome = findJavaHome(javaBase);
this.javaVersion = JavaVersion.current();
this.userSupplied = false;
} else {