Hello Andreas, the last mail you did not send to the mailinglist, but directly to me :-). Maybe the other people want to fallow our discussion.
I think you do not exactly understand what i am meening. The sun preverifier will preverify what is configured in the project configuration, as long as you use eclipseme. If you want to use MIDP1.0-libs, then you have to edit them by-hand. The 4 phones in WTK2.2 all include MIDP2.0-libs. I tried to use the internal preverifier to check for CLCD1.0-Compliance, but it did not work correctly, giving an error-message when creating the package. If you think you can use MIDP1.0 with WTK2.2 and ecliseme, then try creating a Canvas class and call the method "setFullScreenMode(true)". This method is MIDP2.0, and will force a MIDP1.0-Device to crash or even to not start, like my T610 did. Eclipseme will NOT mark this line as an error, if you use the "standard" way. I cleaned my project now from all MIDP2.0-Stuff, using Antenna directly in Eclipse: http://antenna.sourceforge.net/wtkpreprocess.php After manually changing the libs to CLDC1.0 and MIDP1.0, i had to correct many errors. But the antenna-Plugin for eclipse is very nice, it supports the preprocessing on another level than eclipseME does. You can choose a phone (i have chosen Generic/Midp1) and then use preprocessing-macros like: //#if JavaPlatform=="MIDP/2.0" try { setFullScreenMode(true); } catch(Throwable t) {} //#endif When saving the file and having NOT defined that, the preprocessor automatically comments out all that stuff in the block. @Craig: did you use the antenna-Plugin for eclipse in the past? I saw that you now have antenna-sources in the project-svn - what are they for? :-) Markus Andreas Böhme schrieb: > 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. > > You often go the other way around: > the .jad file specifies MIDP1.0 and CLDC1.0, but you are using MIDP2.0 > and CLDC1.1. When the app starts, you can notify the user of the > incompatible APIs, instead of an device-specific, often non-saying > error-message. > >> >> 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? > > I'm using Suns preverifier, shipped with WTK 2.2, and it works fine for me. > > > Andreas > >> >> 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 >>>>> >>> >> > > -- ********************************* [EMAIL PROTECTED] http://www.psitronic.de psitronic IT-Solutions Markus Sinner W-Rathenau-Str. 14 - 68642 Bürstadt Tel.: (+49)6206 / 963513 Fax: (+49)6206 / 963514 ------------------------------------------------------------------------- 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
