Setting the main class in the project
When you have created a project and added some objects to it, you can then set the main class for it. This is the class that will be executed when you execute the project as whole (CTRL + SHIFT + F9). This saves you from having to find and select the main class of your application in order to run your program.
To set the main class for a project:
- Right-click on the class's node in the Explorer (under either the Filesystems or Projects node) or the Object Browser and choose Tools | Set As Project Main Class; or
- On the Project menu in the main window, choose Set Main Class. A dialog box will open in which you can select the main class. If there is a class file currently selected under the Filesystems tab in the Explorer, the text field will be filled with the name of that class.
Contents | Prev | Next | Index |