// Launch the app (this must be done after the Xremwin protocol client
// has been started).
String displayName = winSys.getDisplayName();
HashMap<String, String> env = new HashMap<String, String>();
env.put("DISPLAY", displayName);
appProcess = new MonitoredProcess(appInstanceName, command, env, reporter);
if (!appProcess.start()) {
AppXrw.logger.warning("Cannot launch " + appInstanceName + ": Cannot start application process: " +
command);
cleanup();
throw new InstantiationException();