Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Instruction

GFOXSH edited this page Mar 7, 2017 · 1 revision

How to convert jar to apk for using whith Java J2ME Runner?

  1. Clone this repository to your device.
  2. Copy jar files to "libs" directory.
  3. Open this jar file as zip-archive.
  4. Open META-INF/MANIFEST.MF file.
  5. Find MIDlet-1 string. It must contains 3 parameters: app name, app icon and app main MIDlet.
  6. Edit AndroidManifest.xml and MainMIDlet.java. Enter application name instead "AppName", path to icon png instead /icon.png and main MIDlet name instead MainMIDlet.
  7. Rename MainMIDlet.java as named main main MIDlet in jad. Correct new java-file and AndroidManifest.xml.
  8. Change package name. Rename "application" folder and change it in AndroidManifest.xml and new java-file.
  9. Open external.jar as zip-archive.
  10. List all *.class files in classnames.txt file, finishing all strings by "=" symbol.
  11. Copy all information from original jad-flie or (if there is no) from MANIFEST.MF to file "jad" in "external.jar".
  12. Rename app icon file to "icon.png" and copy to /res/drawable/ directory.

Well done, your ready to build!

Clone this wiki locally