Deploying your first MIDlet

After creating the Hello World MIDlet in Eclipse or NetBeans, deploy it to a device and run it. The current instructions use Nokia Ovi Suite and a USB connection for deploying the MIDlet.

Tip: For instructions on how to deploy a MIDlet directly from NetBeans, see section Deploying from NetBeans.

To deploy the MIDlet:

  1. Connect your Nokia device to your computer using a USB cable. On the device, select Nokia Ovi Suite or PC Suite as the USB mode.

  2. On your computer, open Nokia Ovi Suite.

    Figure: Nokia Ovi Suite connected to a Nokia device

  3. On your computer, open Windows Explorer and navigate to the folder where the IDE stored the MIDlet package:

    • Eclipse (default deployment folder):

      <Eclipse Projects>\HelloWorld\deployed\<device platform>\

    • NetBeans:

      <NetBeans Projects>\HelloWorld\dist\

  4. Drag the MIDlet JAR file from Windows Explorer to Nokia Ovi Suite and drop it on the connected device icon. Click OK to install the MIDlet, and, after the installation has finished, click OK to exit the installation window.

    Note: If you are using a Symbian device, the installation moves to the device. On the Symbian device, finish the installation by following the on-screen instructions.

You have deployed the MIDlet to the device and can now run it:

  1. On the device, navigate to the applications menu.

  2. Select and run the Hello World MIDlet.

    Figure: Hello World MIDlet running on a Symbian (left) and Series 40 (right) device

You have successfully created, deployed, and run your first MIDlet. To learn more about MIDlet development for the Series 40 and Symbian platforms, see Where to go next.

You can download the Eclipse and NetBeans project files for the Hello World MIDlet by clicking here.