Running Programs

By default, the IDE compiles a program before running it--if the program is not already compiled or if it is out of date. If there are no compiler errors, the IDE switches to the running workspace and launches your program.

The IDE provides a set of executors that suit most development needs. You can view and configure the executors under the Execution Types node in the Project Settings window.

Each project and class is assigned an executor by default. This enables you to use one executor for some files in your project and the default executor for others. For example, if a project is assigned the external executor, but one class requires an internal executor, you can change the executor for that class without affecting the other files in the project.

You can view the default executor for a project by selecting the Java Sources node in the Project Settings window. You can view the default executor for a class file by selecting the file in the Explorer and looking at the Executor property on the Execution tab of its property sheet.

For help with running a program, see:

Running a Project
Running and Debugging an Applet
Running a Class When the IDE Starts
Specifying Arguments for Program Execution
Specifying the Main Class to Run for a Project
Passing Arguments to the Java Virtual Machine

For help understanding executors, see:

Configuring the Executors That Run Your Programs
Specifying the Default Executor
Defining a New Executor Type
Setting an Executor Type in a Template
Removing an Executor Type

Legal Notices