Skip to main content

MIDP-2.1 vs 2.0 devices

2 replies [Last post]
dcrk
Offline
Joined: 2008-09-07

I've just written a simple lwuit test app and deployed it to my LG TE365 phone. I get the error "(my app name) is not designed to work with this device and cannot be installed. -40".

The specs for the phone say MIDP-2.0 while the jad generated says MIDP-2.1. Could this be the problem? Do I need a newer phone? Can I simply change the MIDP setting in the jad or does it actually try to run the jar (it did download) and fail?

DaveH

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dcrk
Offline
Joined: 2008-09-07

Follow up...

Since I'm using the NetBeans IDE, the preverifier step is built into the Clean & Build process. Couldn't just change the jad file entry "MicroEdition-Profile: MIDP-2.1" to "MicroEdition-Profile: MIDP-2.0". Had to go into the netbeans project's properties and change the "Device Profile" setting to MIDP-2.0 under Platform category and rebuild.

Now the phone does not reject the application and I get the Launch menu. Still having issues, but that's another thread...

DaveH

David Lucena

You just can change the settings to use MIDP 2 devices. But you have to be sure that the preverifier is also configurated for that profile. And also, keep in mind that the minimun requirements for LUIT is MIDP 2.0, so you can change it wothout problem.

--- El sáb, 3/10/09, lwuit-users@mobileandembedded.org escribió:

> De: lwuit-users@mobileandembedded.org
> Asunto: MIDP-2.1 vs 2.0 devices
> Para: users@lwuit.dev.java.net
> Fecha: sábado, 3 octubre, 2009 5:08
> I've just written a simple lwuit test
> app and deployed it to my LG TE365 phone.  I get the
> error "(my app name) is not designed to work with this
> device and cannot be installed. -40".
>
> The specs for the phone say MIDP-2.0 while the jad
> generated says MIDP-2.1.  Could this be the
> problem?  Do I need a newer phone?  Can I simply
> change the MIDP setting in the jad or does it actually try
> to run the jar (it did download) and fail?
>
> DaveH
> [Message sent by forum member 'dcrk' (dave.hackett@ns.sympatico.ca)]
>
> http://forums.java.net/jive/thread.jspa?messageID=366660
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net