Up Previous Next Title Page Contents

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 Platform, Standard Edition Development Kit for compiling the example. For more information about its version and installation, please refer the Preface section.
Java Platform, Micro Edition Wireless Toolkit (WTK) for additional libraries and emulator support (available from http://java.sun.com). 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 path string variable $MIDP in ‘__JavaFiles’ generator script.

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 MIDP emulators for various Nokia mobile phones from http://www.forum.nokia.com (requires registration). 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 4.2. Otherwise you need to change the value of $S40SDK path string in ‘__JavaPaths’ generator to point into the correct directory and probably edit also the execution command sequence for Nokia emulator in ‘_create make for MIDP’ generator.

Up Previous Next Title Page Contents