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+ reports that generate build
scripts.
The required components for trying out Watch applications
in MIDP are:
 | Java
2 Platform, Standard Edition (J2SE) version1.4.2 or later. This was already
discussed in Preface and should be installed in
c:\java\j2sdk. |
 | Java
2 Platform, Micro Edition (J2ME) Wireless Toolkit, version 2.0 or higher, that
can be downloaded from java.sun.com and should be installed in
c:\java\j2mewtk. |
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 advice you to take a look at and download MIDP emulators for
various Nokia mobile phones from
www.forum.nokia.com (requires
registration). The following Nokia MIDP SDKs with emulators have been integrated
with Watch example (the recommended installation directory is given within
parenthesis):
 | Nokia
3510i MIDP SDK 1.0
(c:\java\nokia\devices\Nokia_3510i_MIDP_SDK_v1_0) |
 | Nokia
7210 MIDP SDK 1.0
(c:\java\nokia\devices\Nokia_7210_MIDP_SDK_v1_0) |
If
you have installed all components into their recommended directories, you can
skip straight to Section
4.2. Otherwise
you need to change the paths that are marked in bold in the ‘_create make
for MIDP’ report in the WatchFamily graph type.
If you are about to use Nokia emulators, you want to
toggle the use of advanced alarm behavior with sound and vibration. The
‘2004Models’ graph properties contain a list of Included Components.
Double-click the second AbstractWatchApplet entry in the list: it should open
and show AbstractWatchApplet for MIDP. Two include lines are commented out near
the start; uncomment them. At the end, uncomment a block of ten lines of code.
OK both dialogs to accept the changes.