Setting up the development environment

Before you can create your first MIDlet, you need to set up the software for developing and deploying MIDlets, that is, the Java ME development environment.

Figure: Setting up the development environment

Computer requirements

Before setting up the development environment, make sure you computer meets the following minimum requirements:

  • Microsoft Windows XP, Vista, or 7

  • 2.6 GHz Intel Pentium IV processor

  • 2 GB RAM

  • 3 GB of free disk space (or more if you plan to install multiple SDKs)

Setting up the development environment

Note: For detailed installation instructions, see the documentation provided with the software.

To set up the development environment:

  1. Download and install the latest Java™ SE Development Kit (JDK). The JDK is required for compiling Java classes.

  2. Install an integrated development environment (IDE). You use the IDE to create the MIDlet. Nokia recommends using either Eclipse or NetBeans IDE ("NetBeans").

    If you are new to Java ME development or have no previous experience of either IDE, consider the highlights of both IDEs:

    Table: Highlights of Eclipse and NetBeans

    IDE

    Highlights

    Eclipse

    • Ideal for experienced Java developers

    • Supports both Series 40 SDKs and Symbian SDKs for Nokia devices

    • Supports a large variety of plugins for application development

    • Easy to install

    NetBeans

    • Ideal for new developers with little or no Java experience

    • Intuitive user interface with clear menus and window placement

    • Integrated Java ME support

    • Supports both Series 40 SDKs and Symbian SDKs for Nokia devices

    • Can be used to deploy MIDlets to devices

    Download and install the IDE of your choice:

    • Eclipse (choose an installation bundle for Java developers)

      After you have installed Eclipse on your computer, install the Mobile Tools for Java plugin. The plugin is required for developing MIDlets in Eclipse. Use Eclipse's native software installation wizard to install the plugin. For more information, see Installing new software in the Eclipse documentation.

    • NetBeans (choose an installation bundle that supports Java ME)

      Note: When installing NetBeans, select to customize the installation and uncheck the Features on Demand option.

    If you are already using either Eclipse or NetBeans, make sure that your installation of the IDE supports Java ME.

  3. Download and install a software development kit (SDK) that supports Java ME. The SDK provides Java ME class libraries that the IDE requires for building MIDlets for a particular device platform.

    Note: To ensure that the SDK can be properly integrated with the IDE, install the SDK on the same logical drive as the IDE.

  4. Optionally, download and install Nokia Ovi Suite. You can use Nokia Ovi Suite to deploy the MIDlet to a device.

  5. Integrate the IDE with the SDK: