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: