}
protected Process launchVM(JavaRuntimeProfile jprofile, ILogger logViewLogger) throws IOException {
String[] cmdElements = createCommand(jprofile);
logger.info("Command: " + Arrays.asList(cmdElements));
Path extendedClasspath = getExtendedClassPath(jprofile);
ProcessBuilder processBuilder = new ProcessBuilder(cmdElements);
Map<String, String> environ = processBuilder.environment();
logger.info("Classpath: " + extendedClasspath);
environ.put("CLASSPATH", extendedClasspath.toString());
StringBuilder msg = new StringBuilder();
msg.append("Command:\n").append(processBuilder.command().toString()).append("\n\n");
msg.append("CLASSPATH set to: \n").append(extendedClasspath.toString()).append("\n");
logViewLogger.info("Launcher", "Launching Application", msg.toString());
return processBuilder.directory(jprofile.getWorkingDirectory()).start();
}