Creating a Java application launch configuration

When you choose Run >Run As >Java Application to launch your class, you are running your class using a generic Java Application launch configuration that derives most of the launch parameters from your Java project and your workbench preferences.  In some cases, you will want to override the derived parameters or specify additional arguments.

You do this by creating your own Java Application launch configuration. 

  1. Select Opens the Run Launch Configurations dialog Run > Run Configurations... or Opens the Debug Launch Configurations dialog Run > Debug Configurations... from the workbench menu bar.  This opens a dialog that lets you create, modify, and delete launch configurations of different types.
  2. Select Java Application in the left hand list of launch configuration types, and press the New button in the toolbar. This will create a new launch configuration for a Java application. The tabs on the right hand side allow you control specific aspects of the launch.

Related concepts

Debugger
Local debugging


Related tasks

Choosing a JRE for launching a project
Launching a Java program
Setting execution arguments
Changing debugger launch options

Related reference

Debug preferences
Debug view
Run Menu