Eclipse - Run Configuration



Creating and Using a Run Configuration

The Run Configurations dialog allows you create multiple run configurations. Each run configuration can start an application. The Run Configuration dialog can be invoked by selecting the Run Configurations menu item from the Run menu.

Run Configuration

To create a run configuration for a Java application select Java Application from the list on the left hand side and click on the New button. In the dialog box that comes up in the main tab specify −

  • A name for the run configuration.

  • The name of a Project.

  • The name of the main class.

In the arguments tab specify −

  • Zero or more program arguments.

  • Zero or more Virtual Machine arguments.

Run Java Application

The Commons tab provides common options such as the ability to allocate a console for standard input and output.

Create Manage and Run Configuration

To save the run configuration click on the Apply button and to launch the application click on the Run button.

Advertisements