One more less obvious part of all of this is how EclipseME behaves when you choose to run or debug a midlet class file inside of Eclipse. If that emulator requires a JAD/JAR combination (not all emulators require this), EclipseME generally creates a new JAD file for use during that launch that only contains the midlet class that was requested to be launched. It has been a long time since I've tested that functionality, so there is a chance a bug has surfaced in there, but I do know there is code to do that.

Craig

Hunter, Kevin wrote:
RTFM. http://eclipseme.org/docs/jadeditor.html
http://developers.sun.com/techtopics/mobility/midp/articles/getstart/index.html
The "JAD" file that accompanies the JAR file contains at least one "MIDlet-<n>" entry which specifies the name, initial class and optional icon for a MIDlet within a MIDlet suite. This information is usually repeated in the manifest of the JAR file. In the case of EclipseME, you specify this using the "MIDlets" tab of the JAD editor. If you created the MIDlet using the EclipseME wizard (New / Other / J2ME / J2ME Midlet) this entry can be created for you automatically by making sure the "Add to Application Descriptor" box is checked.

------------------------------------------------------------------------
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Miguel Menchu
*Sent:* Monday, April 03, 2006 9:57 PM
*To:* [email protected]
*Subject:* [Eclipseme-users] midlet's main class

I was wondering how one specifies the main class (meaning the point of entry to the program) when there are several classes within the midlet suite that implement the startApp() "main method"? Is there any field in the .jad file to indicate which class we're interested in having as our "main class"? When packing a jar file in Eclipse one specifies which class is the "main" class... but when packing my .jad & .jar j2me files EclipseME does not ask me which one I want as my entry point to my app. Thanks.

- Miguel.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to