Right click on your project and select Properties. In the dialog window, select Application Descriptor and click on Tab MIDlets. and click on Add and write name of class and location +ok +clean and build your project.