//prepare the java command
Commandline command = new Commandline();
String javaCmd = System.getProperty("java.home") + File.separator +
"bin" + File.separator + "java";
command.setExecutable(javaCmd);
command.addArguments(new String[]{"-jar", bootJar.getAbsolutePath()});
//add the boot properties argument if it is specified
if(alternateBoot != null) {
this.checkFile(alternateBoot);
command.addArguments(new String[]{alternateBoot.getAbsolutePath()});