Quote:
Originally Posted by winhax
Ok, I figured it out. If anyone is interested in creating a Midlet directly on your smartphone and/or Pocket PC, here's what I did.
- Create your .java files, resource files, and MANIFEST.MF (on your computer or on your smartphone).
- Use the online JXXX Compiler service (JXXX Compiler Service) or Mysaifu (http://www2s.biglobe.ne.jp/~dat/java/project/jvm/index_en.html) to compile your .java files into .class files.
- Use Total Commander (or equivalent file manager, with ability to pack files into a .zip archive) to create a folder called "META-INF" (without quotes).
- Place your MANIFEST.MF file into the "META-INF" folder.
- Use the pack command in Total Commander to pack all the files into a new midlet.zip file (make sure you don't create a zip with a folder holding your files, only add the files you would normally .jar archive).
- Rename the midlet.zip to midlet.jar.
- install the midlet.jar from within your favorite midlet manager.
That's what I came up with. Let me know if anyone has a faster or easier way.

|
This is a good start. Esmertec's JBed (included with many HTC WinMo phones) can actually run MIDlets from class files, so this recipe can be simplified. I discuss this at length in a Blog post at
www.vkfox.com/wordpress titled
On-Board Java Programming -- Windows Mobile Edition.
I use Mortscript scripts to launch the compiler (Kopisusu.jar running under MySaifu) and to get JBed to run compiled and preverified (via Proguard) class files. Check it out.