1 package jde.debugger.command;
3 import jde.debugger.Debugger;
4 import jde.debugger.JDEException;
5 import jde.debugger.SessionManager;
9 * Launches an application.
14 * launch app_id [-use_executable javax] classname [args]
17 * @author Paul Kinnucan
18 * @version $Revision: 1.8 $
19 * @copyright Copyright (c) 2000, 2001, 2003 Paul Kinnucan
21 public class LaunchApplication extends DebugSessionCommand {
25 * @exception jde.debugger.JDEException <description>
27 public void doCommand() throws JDEException {
28 // XXX - fix the 'true' here, and define a better way to determine
29 // whether to use a GUI or not.
30 Debugger debugger = new Debugger(m_targetProcessID, true);
32 SessionManager.registerDebugger(debugger);
35 debugger.launchVM(m_cmdID, m_args);
38 catch (JDEException e) {
39 SessionManager.deregisterDebugger(debugger);
44 public Object clone() {return new LaunchApplication();}
46 } // LaunchApplication
50 * $Log: LaunchApplication.java,v $
51 * Revision 1.8 2003/01/15 05:56:26 paulk
52 * Add Petter Mahlen's changes.
54 * Revision 1.7 2002/10/11 05:41:06 paulk
55 * Fixed bug where the debuggee application launcher was downcasing the first vm command line argument. Thanks toEric W Brown <ewb@us.ibm.com> for this fix.
57 * Revision 1.6 2001/05/24 02:50:06 paulk
58 * Moved jde.signalCommandResult(....,
59 * port) from LaunchApplication.java into the same thread that creates a
60 * server SIO socket to make sure that Emacs connects to this socket after its
61 * creation. Thanks to "Eugene Gavrilov" <eag99@mail.ru>.
63 * Revision 1.5 2001/03/24 05:42:37 paulk
64 * Updated to reflect reorganization of debugger code.
66 * Revision 1.4 2000/07/28 06:27:02 paulk
67 * Committing all modified files.
69 * Revision 1.3 2000/03/03 07:45:05 paulk
70 * Replaced backslashes with forward slashes in launch error messages.
72 * Revision 1.2 2000/01/31 12:41:45 paulk
73 * * Continue converting commands from functional to OO implementation.
75 * Revision 1.1 2000/01/30 12:39:50 paulk
76 * Defines command to launch debuggee application.
80 // End of LaunchApplication.java