Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MicroEmulator
J2ME Device Emulator is pure Java implementation of J2ME in J2SE. It allows demonstrate MIDlet (MIDP/CLDC) based applications as a standalone Java application or as web browser applet.
Context:
1. Running application
2. Applet config
3. Building MicroEmulator from sources
Requirements:
There are two methods of running apps in emulator:
b) java -jar microemulator.jar (MIDlet application main class) or, java -jar microemulator.jar (MIDlet jad file)
Preparing applet version of MIDlet should be done by selecting Save for Web menu item from File menu in standalone MicroEmulator application. During that process additional MIDlet bytecode modification is performed in order to satisfy some compatibility issues running Java ME code inside Java SE.
Produced html code:
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 org/microemu/device/minimum/device.xmland 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:
Example for SimpleDemo MIDlet and Minimum device with Mouse and color:
Example for SimpleDemo MIDlet and Large Skin:
We are using maven2 to build project
To build project you need this environment variables:
JAVA_HOME, SWT_HOME (to build swt module) and WTK_HOME to compile and test MIDlets
To create Eclipse projects run:
mvn eclipse:clean eclipse:eclipse -DdownloadSources=true
To run build without tests:
mvn -Dmaven.test.skip=true