The top level (main) files and objects of the Runtime Environment component used to launch a MIDlet are listed in the table below.
File or Object | Description |
---|---|
midpAMS.h | Provides the public C interface to start the VM and run a suite. |
MIDletSuiteStorage | Provides a method to create MIDletSuite objects for installed suites. |
midpInit.c | Initializes the system dependent resources, including the C heap, persistent storage, and UI system. |
midp_run.c | Implements the functionality to run a MIDlet suite. Initializes the VM including the class path, fills in the CommandState with information needed by the MIDletSuiteLoader and starts the VM with the MIDletSuiteLoader as the first class. It repeats this process as long as the CommandState contains the name of the next suite to run. |
CommandState | Passes state to, and receives state from, each VM run by midp_run.c |
MIDletSuite | Provides the methods the rest of the system requires of a MIDlet suite, such as permission checking and getting application properties. MIDletSuite is an interface. |
InternalMIDletSuiteImpl | Implements the MIDletSuite interface for internally ROMized MIDlets. |
MIDletStateHandler | Handles processing of the runtime states of the MIDlets running in an isolated runtime environment. See the com.sun.midp.midlet package for more information. |
MIDletSuiteLoader | Sets up the system before a suite is run. This is the first class loaded by the VM. It takes the following steps to load and run a suite:
|
The figure below shows the sequence of events that occur in the runtime environment when a MIDlet is launched from the Java Application Manager.
The figure below shows the sequence of events that occur in the runtime environment when a MIDlet is destroyed.