Specifying Arguments for Program Execution

You can pass command-line arguments to a program's main method when you run the program.

To specify program arguments:

  1. In the Explorer, select the runnable Java object.
  2. From the main window, choose Build and choose Set Arguments.
  3. 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").

  4. Click OK.
Tip You can also specify arguments on the Execution tab of the file's property sheet.
See also
Passing Arguments to the Java Virtual Machine
Setting Runtime Options for the Environment

Legal Notices