skin: modify CLI command(sdb, ecp)
authormunkyu.im <munkyu.im@samsung.com>
Thu, 8 Aug 2013 06:35:47 +0000 (15:35 +0900)
committermunkyu.im <munkyu.im@samsung.com>
Thu, 8 Aug 2013 06:44:14 +0000 (15:44 +0900)
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index 1eb1939d0755f72fa523c968cd1ed55f7c0d99b2..a5a6bb1f1cdd1ae76a04ca31a16f2b64cfdea83d 100644 (file)
@@ -1141,7 +1141,7 @@ public class EmulatorSkin {
 
                                // 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);
@@ -1150,11 +1150,10 @@ public class EmulatorSkin {
                                                        "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());
@@ -1605,7 +1604,7 @@ public class EmulatorSkin {
                                        return;
                                }
 
-                               int portSdb = config.getArgInt(ArgsConstants.VM_BASE_PORT);
+                               int portSdb = config.getArgInt(ArgsConstants.VM_BASE_PORT) + 1;
 
                                ProcessBuilder procSdb = new ProcessBuilder();