Skip to main content

MIDlets on Pocket PC

2 replies [Last post]
thenickdude
Offline
Joined: 2007-11-26

Hey all,

I've got PhoneME binaries install on my ARM Windows Moble 5.0 emulator. I can use it to run compiled classes which have a main method okay. But I want to run MIDlets. The installMidlet/etc tools don't seem to work on the platform. I can't just add a main method to the MIDlet that creates a new instance. How can you run MIDlets on PhoneME without installMidlet?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03

Hi,

Since you can run simple java programs with a main method, I am
assuming you are using the dual stack build (Foundation Profile with
MIDP support).

I have phoneME and the midlets installed in \phoneme. To run a midlet, I create 3 files:
1) \phoneme\HelloWorld.lnk
255#"\phoneme\bin\cvm.exe" -f "\phoneme\HelloWorld.txt"

2) \phoneme\HelloWorld.txt (everything below on 1 line)
-Xmx2m -Dmicroedition.profiles=MIDP-2.1 -Dsun.midp.library.name=midp
"-Dsun.midp.home.path=\phoneme\midp_wince"
-Dcom.sun.midp.mainClass.name=com.sun.midp.main.CdcMIDletSuiteLoader
sun.misc.MIDPLauncher -midppath "\phoneme\midp\midp_wince\classes"
-suitepath "\phoneme\HelloWorld.jar" -1

3) \phoneme\HelloWord.jar
The jar with the midlet (including the manifest).

You may need to change the paths in the lnk or txt files if you have installed
phoneME or the midlets somewhere else. With the dual stack, you do not need to use installMidlet.

Davy

thenickdude
Offline
Joined: 2007-11-26

Whoops, I actually meant to install PhoneME feature! I'll go ask another question in the correct group this time.

Message was edited by: thenickdude