Running a Java Program

Runnable Java objects are marked with the icon Executable icon in the Explorer. If the file has not been compiled or the .class file is out of date, the IDE compiles the file before running it.

To run a Java program:

  1. In the Explorer, click the Filesystems tab and select the file you want to run.
  2. From the main window, choose Build and choose Execute.

    If there are no compiler errors, the IDE switches to the running workspace, which displays your running application and the Execution View and Output windows.

Tip You can run the active file in the Source Editor by right-clicking anywhere in the Source Editor and choosing Execute.
For information on running a project, see Compiling, Running, and Debugging a Project.
See also
Specifying Arguments for Program Execution
Setting Runtime Options for the Environment

Legal Notices