javaHome = StringUtilities.getProperty("java.home");
if ((javaHome != null) && (javaHome.length() > 0)) {
javaHome = javaHome.replace('\\', '/');
} else {
throw new InternalErrorException(this, null,
"Could not find the " + javaHomeProperty + " and the "
+ "java.home property. Perhaps "
+ "$PTII/lib/ptII.properties "
+ "is not being read properly?");
}
}
File javaHomeFile = new File(javaHome);
if (!javaHomeFile.isDirectory()) {
throw new InternalErrorException(
this,
null,
"Could not find the Java "
+ "directory that contains bin/keytool. "
+ "Tried looking for the '"