Setting the main class
Set the main class for your project on the Run page of Project Properties (Project|Project Properties).