Specifying the Main Class to Run for a Project

Many templates set the main class for you. If the main class is not set, you can set it using the Set Main Class dialog box.

To set the main class:

  1. From the main window, choose Project and choose Set Project Main Class (Ctrl-Shift-M).
  2. In the Select Main Class dialog box, select the class that contains the main () method.
  3. Click OK.
See also
Compiling, Running, and Debugging a Project

Legal Notices