Specifying Arguments for Program Execution
See Also
You can specify execution arguments on two levels:
- On an individual file (such as the project's main class).
- For all classes in a project.
To specify program arguments on an individual file:
- In the Filesystems window, select the runnable Java object.
- From the main window, choose Build
Set
Arguments.
- In the Set Arguments dialog box, type the arguments as if you were typing
them on the command line.
If the argument includes a space, enclose it in quotation marks (for example,
"arg 1").
- Click OK.
 |
You can also specify arguments in the Arguments
property in the file's property sheet. |
To set execution arguments for an entire project:
- From the main window, choose Tools
Options.
- In the Options window, expand Debugging and Executing
Execution
Types.
- Select the desired executor type.
- On the property sheet, click the value of the External Process property
and click the ellipsis (...) button.
- In the property editor, add the arguments to pass to the Java application
before the {classname} argument.
- Click OK.
Legal Notices