Up Previous Next Title Page Contents

5.4.1 MIDP Development Environment

MIDP applications can be developed on all major platforms, but for the sake of simplicity we only provide instructions for Windows. If possible, install all components into the directories suggested here, then you will not need to edit the paths in the MetaEdit+ generators that output build scripts.

The required components for trying out Watch applications in MIDP are:
Java SE Development Kit for compiling the example. For more information about its version and installation, please refer the Preface section.
Sun Java Wireless Toolkit (WTK) for additional libraries and emulator support (available from http://www.oracle.com/technetwork/java/download-135801.html). The latest WTK version at the time of writing was 2.5.2 - the example code generator has been tested to work with this version. We recommend the installation with default options. If you want to install WTK somewhere else than in its default directory, you have to edit the value of variable $MIDP in the ‘__Paths’ generator.
The J2ME Wireless toolkit comes with a MIDP device emulator that is suitable for our purposes, but if you want to use better looking emulators with more bells and whistles, we advise you to take a look at and download the Nokia S40 MIDP SDK from http://www.developer.nokia.com/Develop/Java/Tools/Series_40_platform_SDKs. As an example, we have integrated the Nokia S40 MIDP SDK 5th Edition Feature Pack 1 with the Watch example. If you install the SDK into the proposed default directory, you can skip straight to Section 5.3.2. Otherwise you need to change the value of the $S40SDK variable in the ‘__Paths’ generator to point to the correct directory, and probably edit also the execution command sequence for the Nokia emulator in ‘_create make for MIDP’ generator.

If you want to integrate the MIDP generation with Eclipse, download and install the Eclipse Mobile Tools for Java add-on from http://download.eclipse.org/mtj/updates/1.1.2/stable. The integration has been tested with version 1.1.2. Please note that after the MIDP code has been generated, loaded into Eclipse and compiled, you still have to start its execution manually.

Up Previous Next Title Page Contents