Right-click the project and select Run >Run Configurations to display the Run Configurations dialogue box.
Figure: Run Configurations dialog box
Double-click the Emulated Java ME MIDlet option in the left pane to create a new configuration.
Figure: Enter the name of the configuration
Specify the name of the configuration.
Select the project usingBrowse.
In the Executable section, select the MIDlet option and click Search. This displays the Choose Midlet dialogue box.
Figure: Choosing a MIDlet
Select the MIDlet and click OK to close the dialogue box.
Click the Emulation tab.
Figure: Configuring the Emulation tab
In the Device section, ensure that Project Device is selected.
If want to run your MIDlet on another device, perform the following steps:
Select the Specific Device option.
Select the appropriate SDK and Device in the Device section.
Click Apply to save the changes.
Click Run to run the MIDlet. This launches the MIDlet on the emulator.
You may get compilation and runtime errors when you run your MIDlet. Debug your MIDlet to resolve the errors.