The Android port of phoneME Feature and Advanced is merely a proof-of-concept that running J2ME applications and midlets on Android is possible. Make sure you always specify the full path of the java archive starting from the root of the. With the phoneME Advanced + MIDP dual stack within an Android 2.2 emulator. Just got a Droid and on my previous Windows Mobile 6.1 phone there was a Java emulator (Intent Java MIDlet Manager ) which allowed you to run jad/jar files on your Windows Mobile device.
It's been a year since I posted tutorial how to automatically convert Java ME MIDlets to Android platform. Since then, a lot of work has been done to make this tool even better and support more and more different Java ME applications and games. I've got a lot of positive feedback as well which also helped improving quality of this project. 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. Required third party software: - Java SE JDK () - Subversion client () - Maven - Ant () - Android SDK version 1.5 or later () - ASM () 1.
Check out from Subversion repository (revision 2211) svn co microemulator -r 2211 2. Build 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 4. Configure properties for game, edit microemu-android/build.xml file (before you have to download 5ud0ku.jad and 5ud0ku.jar files to the same folder) 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 package. Anonymous said. > if it is possible to convert Java ME jar directly on device.
Okay, you're right here. What i meant, that JavaME and JavaSE apps become equal in rights. AFAIK applets and midetts differ only in runtime libraries and metadata text files, which object to run. So, for Android indeed, it is out of scope of MicroEmu to make jar's directly runnable in this OS. But what the ideal goal, i think, is that dx or some market-like service treated applets and midlets with no difference, with equal ease and reliability. Hello Bartek The tutorial is great and I can compile the demo apps. However, I'm struggling with my own jar which is around 450KB.
I set in the dx.bat to javaOpts=-Xmx2048M And it still produces the following error: [exec] warning: Ignoring InnerClasses attribute for an anonymous inner clas s that doesn't come with an associated EnclosingMethod attribute. Hello Bartek. First I have to thank for your great work on miroemu! I tried to 'convert' my javame-files to.apk as you descripted. After an hour of configuration ant compiled my.apk:) If i install the.apk in android-(2.0.1) my app starts as expected.