Running a MIDlet from NetBeans

Context

Note: In order to follow the instructions here, the following prerequisites have to be in place

  • S60 5th Edition SDK has been installed

  • NetBeans and NetBeans Mobility Pack have been installed, and the S60 SDK has been configured for NetBeans (see Installing and configuring Netbeans)

Steps

  1. Open the NetBeans IDE.

  2. Select File > Open project… from the menu bar.

    The Open Project view is displayed:

    Figure 38: Open project

  3. Browse to the NetBeans project file located in the in the \targets\netbeans folder of the MIDlet that you want to run.

  4. Click Open Project Folder.

    The NetBeans project is opened in the NetBeans IDE.

  5. Click the netbeans project icon in the project view on the left and select Properties from the pop-up menu.

    The Project configuration view is displayed:

    Figure 39: Project configuration view

    Here you need to set the S60 SDK emulator as the default project configuration.

  6. Click Manage Configurations….

  7. In the Project Configuration Manager view that is displayed, click Add….

  8. In the Add Project Confugration view that is displayed, select "S60_emulator_template" from the Use Configuration Template drop-down menu and click OK.

    The S60Emulator configuration is added to the list of project configurations.

  9. In the Project Configuration view, click Close.

  10. With the S60Emulator in the Project Configuration field of the Project configuration view, click OK.

  11. Select Build > Build Main Project from the menu bar.

    The build output is displayed in the Output field at the bottom of the IDE.

  12. Select Run > Run Main Project from the menu bar.

Results

The S60 emulator is launched.

Note: It may take some time for the emulator to start.