Skip to main content

Porblem with running j2me polish proejct on phoneme

8 replies [Last post]
junaid88
Offline
Joined: 2010-04-05
Points: 0

hi
i want to run my j2mepolish ion windows mobile 5 by using phoneme but when run my project by using phoneme binaries the application will work fine but when i create it start up link it will open the project but it remove all the padding to all the element of the project.

So is anyone run the j2me polish project in the Windows mobile 5 by using Phoneme binaries so please share the startup link
i used the start up link is

JAR-name : client.jar
JAD-name: client.jad
Midlet name :MenuMidlet
Start up Link name is "MyApp.lnk"

255#"\Program Files\pMEF MIDP\bin\arm\runMidlet.exe" -classpathext "\My Documents\Personal\client.jar" "\My Documents\Personal\client.jad" MenuMidlet

Please share your experience with me

Regards
Junaid

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
Points: 0

I have never used J2ME Polish, but the shortcut looks OK to me.

I can only think of one reason being that some settings in the Jad descriptor are
causing this. In fact, the whole jad descriptor is ignored by the VM if you run a midlet
this way. You could replace it in the shortcut with "-1" to tell the VM that the midlet is
built in (or added to the default classpath).

Normally, this command line parameter would be the number of the suite id when the
midlet is installed. The VM checks whether this parameter is a positive number and
launches the midlet in the corresponding suite id.

Davy

junaid88
Offline
Joined: 2010-04-05
Points: 0

hi
thanks for reply as you say i replace the shortcut 255 to -1 but it will not show any changes the program will show the it functionality perfectly but Styles & Gui will not show properly as it show when i installed the program & run it through the phoneme vm .

-1#"\Program Files\pMEF MIDP\bin\arm\runMidlet.exe" -classpathext "\My Documents\Personal\client.jar" "\My Documents\Personal\client.jad" MenuMidlet

Message was edited by: junaid88

junaid88
Offline
Joined: 2010-04-05
Points: 0

hi

through this .lnk file i open the MVMmanager.But i want do to open the install application through the .lnk file .So is there is any command to do this.

255#"\storage card\midp\bin\arm\runMidlet.exe" +LogVMOutput -1 com.sun.midp.appmanager.MVMManager -classpathext "\My Documents\Personal\client.jar" "\My Documents\Personal\client.jad" client.MenuMidlet

junaid

davyp
Offline
Joined: 2007-01-03
Points: 0

This is a shortcut to install a midlet:

255#"\storage card\midp\bin\arm\runMidlet.exe" -1 com.sun.midp.installer.GraphicalInstaller I "file:///dir/midlet.jad"

Davy

junaid88
Offline
Joined: 2010-04-05
Points: 0

hi

Thanks for reply i also try that link but i just want to open the installed application through .lnk file
through this link graphical installer will be open every time.Inn my case i have a installed application in the phoneme i just want to open this installed application through .lnk file.

Junaid

davyp
Offline
Joined: 2007-01-03
Points: 0

Yes, my previous post was about installing a midlet from a link file, not about running the
midlet.

If you want to run the midlet from a link file without going through the MVMManager midlet
manager, you need to know the Suite ID of the midlet. If you installed the midlet as the
first application, then it should be something like:

255#"\storage card\midp\bin\arm\runMidlet.exe" 2

If you have other midlets installed, then 2 should be replaced with a higher number
depending on the order of installation of the other midlets. Unfortunately, there is no easy
way to determine this suite ID, and it might change if you reinstall midlets in a different order.

Davy

junaid88
Offline
Joined: 2010-04-05
Points: 0

hi

the problem still remains

when i open the application through the runmidlet.exe ->application then click open in the MVMManager the application will work fine but when i open to the .lnk file it will not working fine.

i will try to open the application through the following command

255#"\Program Files\pMEF MIDP\bin\arm\runMidlet.exe" 9

but it will not give me the same result
Junaid

davyp
Offline
Joined: 2007-01-03
Points: 0

I am out of ideas as it seems to be an application specific issue. Can you perhaps make
the jad and jar available for testing?

Davy