// FIXME: appropriate running binary setting is necessary.
if (SwtUtil.isLinuxPlatform()) {
- procEcp.command("/usr/bin/java", "-jar",
+ procEcp.command("java", "-jar",
"./emulator-control-panel.jar", "vmname="
+ emulName, "sdb.port=" + portSdb,
"svr.port=" + portEcp);
"emulator-control-panel.jar", "vmname=" + emulName,
"sdb.port=" + portSdb, "svr.port=" + portEcp);
} else if (SwtUtil.isMacPlatform()) {
- // procSdb.command("./sdbscript", "emulator-" + portSdb);
- /*
- * procSdb.command( "/usr/X11/bin/uxterm", "-T", "emulator-"
- * + portSdb, "-e", sdbPath,"shell");
- */
+ procEcp.command("java", "-jar", "-XstartOnFirstThread",
+ "./emulator-control-panel.jar", "vmname="
+ + emulName, "sdb.port=" + portSdb,
+ "svr.port=" + portEcp);
}
logger.log(Level.INFO, procEcp.command().toString());
return;
}
- int portSdb = config.getArgInt(ArgsConstants.VM_BASE_PORT);
+ int portSdb = config.getArgInt(ArgsConstants.VM_BASE_PORT) + 1;
ProcessBuilder procSdb = new ProcessBuilder();