cmdStop = cmdGeneral + " " + dir + "smartfrog" + " -a " +"\""+ this.processNameTextField.getText()+"\"" +":" +cmdSFStop+":" +""+":" +":" + this.hostNameTextField.getText() + ": -e";
cmdStop = cmdGeneral + " " +dir + "smartfrog" + " -a " +"\""+ this.processNameTextField.getText() +"\""+":" +cmdSFStop+":" +""+":" +":" + this.hostNameTextField.getText() + ": -e";  } }
   void runProcess() {      // Checks if we are in the Browsing components panel.      int indexPanel = this.jTabbedPanelNorth.getSelectedIndex();      if (indexPanel == this.jTabbedPanelNorth.indexOfTab(panelNameBrowseComp)) {         String sfFileURL = this.BrowseSFComponentPanel.getSelectedFile();         if ((sfFileURL != null) && (!(sfFileURL.equals("")))) {            this.runSFProcess(sfFileURL);         }         return;      }      // no file loaded!      if ((currFileName != null) || (dirty)) {         if (okToAbandon(jTextAreaSFFile.getText(), this.currFileName)) {            File file = new File(currFileName);            try {               String osName = System.getProperty("os.name");               String cmdGeneral = "";               String batchDir = "bin";               String dir = "";               String cmdStart = cmdSFStart;               String cmdStop = cmdSFStop;               if (osName.equals("Windows 2000") || osName.equals("Windows NT")|| osName.equals("Windows XP")) {                  cmdGeneral = "cmd.exe /C";                  dir = ".\\" + batchDir + "\\";                  if (this.securityCheckBox.isSelected()) {                     dir = dir + cmdAddSecurity + "\\"  ;                     cmdStop = dir + cmdAddSecurity + "\\"  ;                  }               } else if (osName.equals("Windows 95") || osName.equals("Windows 98")) {                  cmdGeneral = "command.exe /C";                  dir = ".\\" + batchDir + "\\";                  if (this.securityCheckBox.isSelected()) {                     dir = dir + cmdAddSecurity + "\\"  ;                     cmdStop = dir + cmdAddSecurity + "\\"  ;                  }               } else {                  cmdGeneral = "bash";                  dir = "./" + batchDir + "/";                  if (this.securityCheckBox.isSelected()) {                     dir = dir + cmdAddSecurity + "/"  ;                     cmdStop = dir + cmdAddSecurity + "/"  ;                  }               }//               cmdStart = cmdGeneral + " " + dir + cmdStart + " "//                      + this.hostNameTextField.getText() + " "//                      + this.processNameTextField.getText() + " "//                      +"\""+ file.getPath()+"\"" + " ";//ProcessName:DEPLOY:org/smartfrog/examples/counter/examplekk.sf::127.0.0.1:               cmdStart = cmdGeneral + " " + dir + "smartfrog" + " -a "                      +"\""+ this.processNameTextField.getText()+"\"" +":"                      +cmdSFStart+":"                      +"\""+ file.getPath()+"\""+":"                      +":"                      + this.hostNameTextField.getText() + ": -e";//               cmdStop = cmdGeneral + " " + dir + cmdStop + " "//                      + this.hostNameTextField.getText() + " "//                      + this.processNameTextField.getText() + " "//                      + " ";//ProcessName:DEPLOY:org/smartfrog/examples/counter/examplekk.sf::127.0.0.1:                  cmdStop = cmdGeneral + " " + dir + "smartfrog" + " -a "                         +"\""+ this.processNameTextField.getText()+"\"" +":"                         +cmdSFStop+":"                         +""+":"                         +":"                         + this.hostNameTextField.getText() + ": -e";               jTabbedPanelNorth.setSelectedIndex(jTabbedPanelNorth.indexOfTab("output"));//                    // Select Output//                    runCmd.start();               auxProcess = new InfoProcess(this.processNameTextField.getText() + "(" + this.hostNameTextField.getText() + ")", cmdStart, " ", cmdStop, " ", ".", null);               auxProcess.start();               this.processPanel.mngProcess.addProcess(auxProcess, true);               //log("Process Running: " + "\n   " + cmd, "RUNMnu", 3);               log("Process Running: " + "" + auxProcess.getProcessName(), "runProcess", 3);               this.processPanel.refresh();               output.requestFocus();               //runCmd = new RunProcess("java-cp smartfrog org.smartfrog.SFSystem -c "+file.toURL());               //runCmd.run();               //runCmd.start();            } catch (Exception ex) {               log(ex.getMessage(), "runProcess", 5);               ex.printStackTrace();            }         }      } else {         log("No SFFile loaded", "runProcess", 4);      }   }