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

5.4.2 Building and Running MIDP Watch

Once you have installed all the above components, open the Watch example project in MetaEdit+. Edit the properties of the ‘WatchModels’ graph, setting the Generation target platform to MIDP and choosing the emulator from the MIDP Emulator list.

You can then run the Autobuild generator for that graph. This should generate the Java code and MIDP configuration files, and a batch file which it will then run. The batch file will compile the code, verify it for MIDP, package it into a .jar file, fill out extra parts of the configuration files (e.g. the size of the .jar file), and make a .jad file. This is the application descriptor file, which is a simple textual description of the .jar file and application. The batch file will then start the emulator with the parameters from that .jad file.

If all goes well, you will be presented with a phone showing a list of the Watch models. Use up and down keys on the phone to highlight one, and then press Select to start it. Once in a watch model, you can cycle through the sub-applications there with the Mode button, and interact with them using Mode, Set (normally shown as on-screen soft-keys), Up and Down (mapped to the up and down keys or 2 and 8 on the phone).

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