Running a Project or File

You can run a project or file any time during the development cycle. When you run a project, you run all .class files that are part of the project. (You can view the contents of a project on the Project Default tab in the Explorer.) If your project has not been compiled or the .class file is out of date, the IDE (by default) compiles the project or file before running it.

To run the current project:

  1. From the main window, choose Project Execute Project (Ctrl-Shift-F6).

  2. If the Set Main Class dialog box appears, select the class that contains the main method and click OK.

    If there are no compiler errors, the IDE switches to the running workspace, which by default displays your running application and the Execution View and Output windows.
To run an individual class, right-click the class in the Explorer and choose Execute. If the file is active in the Source Editor, you can also run the file by choosing Build Execute (F6).
See also
Correcting Errors in Source Code
Specifying Arguments for Program Execution
Setting Runtime Options for the Environment
The Running Workspace

Legal Notices