I think there is confusion here between what the preverifier does and what API's are available. The preverifier verifies things like no floating point usage (CLDC 1.0) and no native methods. It does not know about what API's are valid. That comes from your classpath which is derived from your device definition. At this time, although the information is provided (indirectly) by the WTK UEI queries, there is not a way to control the API's a device definition provides without creating a new device manually. There are various open enhancement requests to address some of these issues.
Markus Sinner wrote: > Okay, principally you are right. But it is confusing that you set your > project to use only MIDP1.0, but it integrates the midpapi20.jar. Maybe > a warning to the user when he has chosen a incompatible Profile in the > JAD-File would be good. > > I think the problem is the Sun WTK. It only has 4 Phones, which do all > depend on MIDP2.0-libs (and CLCD1.1). You are not able to choose a > profile which uses MIDP1.0. On Windows, the Nokia S40-SDK and the > SonyEricsson 1.2 WTK support these settings. > > Also, it seems that the internal preverifier does not work. How is this > topic ongoing? > > Greetings, > Markus > > Andreas Böhme schrieb: > >> Markus Sinner wrote: >> >>> I'm ashamed. Setting the JAD-File to MIDP-1.0 has no effect to the >>> eclipseME/SunWTK build-process. After trying the Sony Ericsson 1.2 >>> SDK, it gets clear what is happening. I am using MIDP2 Functions all >>> over my application, bevor they were not reportet as beeing >>> incompatible to the Specification. >>> >>> How can I make sure that MIDP1-Compatibility is met? It seems that the >>> preverifier ignores it. >>> >> If you are using an IDE (e.g. Eclipse), you can set the MIDP1.0 as - the >> *only* - lib. >> >> When you are compiling manually (or via a script), setting the >> bootstrap-classpath to (*only*) the MIDP1.0 lib should do the job. >> >> >> P.S.: *only* means no mix of MIDP1.0 and 2.0, other libs do not harm >> (similar to CLDC1.0 and 1.1). >> >> >>> Greetings, >>> Markus >>> >>> Markus Sinner schrieb: >>> >>>> Hello everybody, >>>> >>>> has anybody ever hat problems on that phone? I cannot get my Midlet >>>> running on the phone, all the time the message "Invalid application" >>>> is drawn. >>>> >>>> I testet a HelloWorld Midlet, which works fine. >>>> >>>> The phone does only support MIDP1.0, so maybe somewhere I use some >>>> code which the phone does not want to play with? >>>> >>>> Any help can help :-) >>>> Markus >>>> >>>> >> > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users
