MicroEmulator
J2ME Device Emulator is based on JDK 1.1 so allows demonstrate
MIDlet (MIDP/CLDC) based applications in browser applet.
There are two methods of running apps in emulator:
1. As an application:
a) java com.barteo.emulator.app.Main (MIDlet application main class)
or, java com.barteo.emulator.app.Main (MIDlet jad file)
- me-app.jar must be in CLASSPATH
b) java -jar me-app.jar (MIDlet application main class)
or, java -jar me-app.jar (MIDlet jad file)
- (MIDlet application main class) parameter is optional, if used MIDlet
application jar file must be in CLASSPATH,
- (MIDlet jad file) must have .jad extension,
- for Nokia UI support include nokiaui.jar to the CLASSPATH,
- for Siemens API support include siemensapi.jar to the CLASSPATH.
2. In applet:
Including html code:
- for Nokia UI support include nokiaui.jar to the archive attribute,
- for Siemens API support include siemensapi.jar to the archive attribute.
There is additional parameter in applet definition tag if you want start applet
with another device than default:
eg. minimum phone included in distribution has
net.barteo.me.appletdevice.minimum.MinimumDevice
and remember to include new device jar into applet archive tag
eg. minimum phone included in distribution has
minimum.jar
Example for SimpleDemo MIDlet, Nokia UI support and Minimum device: