Now, it is much simpler to set up MIDlet details, since only jad location and resulting apk package file name is necessary to provide in configuration.
For this demonstration procedure, I took a popular Java ME game 5ud0ku.
Required third party software:
- Java SE JDK (http://java.sun.com/javase/)
- Subversion client (http://subversion.tigris.org)
- Maven http://maven.apache.org/
- Ant (http://ant.apache.org/)
- Android SDK version 1.5 or later (http://developer.android.com/)
- ASM (http://asm.ow2.org/)
1. Check out MicroEmulator from Subversion repository (revision 2211)
svn co http://microemu.googlecode.com/svn/trunk/microemulator microemulator -r 2211
2. Build MicroEmulator project using Maven
cd microemulator
mvn
3. Make sure that the following properties in microemu-android/build.xml correctly point to the Android SDK and ASM jar file
<property name="sdk-folder" value="\java\android-sdk-windows"/>
<property name="asm.jar" value="\java\asm-3.2\lib\asm-3.2.jar"/>
4. Configure properties for 5ud0ku game, edit microemu-android/build.xml file (before you have to download 5ud0ku.jad and 5ud0ku.jar files to the same folder)
<property name="midlet.jad" value="\java\5ud0ku.jad"/>
<property name="midlet.package" value="5ud0ku.apk"/>
5. Create Android apk package with Ant
cd microemu-android
ant
6. And finally deploy microemu-android/bin/5ud0ku.apk either on emulator or device. For all of you who don't want to go through this somehow long procedure, here it is already prepared 5ud0ku.apk package.