Running a Program

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 runs a program using an executor (which initiates the Java virtual machine). The IDE provides a default set of executors that suit most development needs. You can run an application inside the IDE using an internal executor or outside the IDE using an external executor. You can run an applet using the applet viewer or a web browser. You can run a Java server page using the JSP executor.

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 executor of the other files in the project.

You can modify how an executor is called, such as which executable to use and the directory in which to start the process. You can also create and remove executors. You can view and modify executors under the Execution Types node in the Project Settings window.

For help with running a program, see:

Running a Project or File

Specifying Arguments for Program Execution

Specifying the Main Class for a Project

Disabling Execution of a Class
For help understanding the runtime environment, see:
The Running Workspace

Setting Runtime Options for the Environment

For help understanding executors, see:

Configuring the Executors That Run Your Programs

Specifying the Default Executor for a Class

Specifying the Default Executor for a Project

Defining a New Executor Type

Removing an Executor Type

Legal Notices