args.get("suspend").setValue("true");
suspend = DebugTab.this.suspend.isSelected();
args.get("main").setValue(mainClass);
try {
DebugTab.this.vm = connector.launch(args);
StreamRedirector srErr = new StreamRedirector(vm.process().getErrorStream(), System.err);
new Thread(srErr).start();
StreamRedirector srOut = new StreamRedirector(vm.process().getInputStream(), System.out);
new Thread(srOut).start();
} catch (Exception ex) {
SystemFacade.getInstance().handleException(ex);
return;
}