Show in Frame No Frame
Up Previous Next Title Page Contents Search

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.
*Oracle Java ME SDK for additional libraries and emulator support (available from http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk). The latest SDK version at the time of writing was 3.4 — the example code generator has been tested to work with this version. We recommend the installation with default options. If you want to install Java ME SDK somewhere else than in its default directory, you have to edit the value of variable $MIDP in the ‘__Paths’ generator.
The Java ME SDK 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, you could download the Nokia SDK 2.0 for Java from http://developer.nokia.com/resources/downloads. If you install the SDK into the proposed default directory, you can skip straight to Section 5.4.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.
->Please note that there is a known incompatibility issue between Nokia SDK 2.0 and more recent Java SDKs, causing the execution of Nokia Phone Emulator to fail with an error message “The Internal RMI Registry port 1099 may be in use by another application”. At the time of writing, the only known resolution for this problem is to downgrade the Java SDK to version 7 update 17.

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.

Show in Frame No Frame
Up Previous Next Title Page Contents Search