Right-click the project and select Run >Run Configurations to display the Run Configurations dialogue box.
Note:
You can also run the files using Emulated Java ME JAD, or Emulated Java ME MIDlet.Figure: Running a MIDlet
Double-click the Emulated Java ME MIDlet option in the left pane to create a new configuration.
Figure: Creating a new configuration
Specify the name of the configuration.
Select the project using the Browse button.
In the Executable section, select the MIDlet option and click the Search button. This displays the Choose MIDlet dialogue box.
Figure: Choosing a MIDlet to be emulated
Select the MIDlet and click the OK button to close the dialogue box.
Click the Emulation tab.
Figure: Selecting project device
In the Device section, ensure that Project Device is selected.
If want to run your MIDlet on another device, perform the following steps:
Click Apply to save the changes.
Click Run to run the MIDlet. This launches the MIDlet on the emulator.
Note:
Ctrl + K is the hot key used to kill the MIDlet as shown in the figure below.
Figure: MIDlet exited properly
Note:
You may get compilation and runtime errors when you run your MIDlet. Debug your MIDlet to resolve the errors.