Running Java classes
Java applications may be run in several ways.
To run a Java application:
- Make sure that the Java object is executable (that it either has a
main()
method or is a subclass ofApplet
orJApplet
).- Right-click on it in the Explorer and choose Execute from the contextual menu.
Alternately, you can select the Java object in the Editor window and then run it one of the following ways:
- Choose the Execute icon on the Main Window.
- Choose Build | Execute from the Main Window.
- Use the keyboard shortcut CTRL+F9.
When executing, the Java class is (by default) first compiled. After compilation completes successfully, the IDE switches to the Running Workspace (though you may configure it to do otherwise by opening the Project Settings window, selecting the
Execution Settings
node, and changing theWorkspace
property). You can return the IDE to the Editing or the GUI Editing workspace by clicking the tab for the workspace in the lower left part of the Main Window. See Workspaces and Customizing workspaces for more information.
Contents | Prev | Next | Index |