| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Setting execution arguments |
| </title> |
| </head> |
| <body> |
| <h1> |
| Setting execution arguments |
| </h1> |
| <p> |
| If you want to specify execution arguments for your program, you must |
| define a launch configuration that specifies the arguments. |
| </p> |
| <ol> |
| <li> |
| Select <strong>Run >Run...</strong> |
| (or <strong>Run >Debug...)</strong> from the workbench <strong>Run</strong> |
| menu to open the list of launch configurations. Launch |
| configurations for Java programs are shown underneath <strong>Java |
| Application </strong>in this list. |
| </li> |
| <li> |
| Create a new launch |
| configuration by pushing the <strong>New</strong> button after selecting |
| <strong>Java Application</strong>. |
| </li> |
| <li> |
| On the <strong>Arguments</strong> tab for the configuration, you can |
| specify the following fields as necessary: |
| <ul> |
| <li> |
| <strong>Program Arguments</strong>: Application-specific values that your code is expecting (a user name or a URL for locating help files, for |
| example). |
| </li> |
| <li> |
| <strong>VM Arguments</strong>: Values meant to change the behavior of the Java virtual machine (VM). For example, you may need to tell the VM whether |
| to use a just-in-time (JIT) compiler, or you may need to specify the maximum heap size the VM should use. Refer to your VM's documentation for more information |
| about the available VM arguments. |
| </li> |
| <li> |
| <strong>Working Directory</strong>: The working directory used for the launched process. To change from using the default working directory, uncheck |
| <strong>Use default working directory</strong> and specify the workspace or local directory to use for the working directory of the launched process. |
| </li> |
| </ul> |
| </li> |
| <li> |
| Click <strong>Apply</strong> or <strong>Close</strong> when you are done. Every time you launch this configuration, these execution |
| arguments will be used. |
| </li> |
| </ol> |
| <p> |
| <img border="0" src="../images/ngrelt.gif" alt="Related tasks" width="159" height="27"><br> |
| <a href="../tasks/tasks-java-local-configuration.htm">Creating a Java Application launch |
| configuration</a><br> |
| <a href="../tasks/tasks-130.htm">Launching a Java program</a><br> |
| <br> |
| </p> |
| <p> |
| <a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" width="324" height= |
| "14"></a> |
| </p> |
| </body> |
| </html> |
| |