This section indicates how to create a simple MIDlet:

(Draft)

 


Topics: EclipseME (J2ME Plugin) - Creating a simple MIDlet - Links - Other
EclipseME
 

EclipseME is an Eclipse plugin to help develop J2ME MIDlets. EclipseME does the "grunt work" of connecting Wireless Toolkits to the Eclipse development environment, allowing you to focus on developing your application, rather than worrying about the special needs of J2ME development.

Setting up EclipseME J2ME Plugin

 

Next, you need to set up the J2ME plugin that will tie the Sony Ericsson SDK into the Eclipse environment.

Install EclipseME with these instructions.

Configure EclipseME with these instructions.

Creating a New Midlet

 

(The following screenshots should be taken as a guide only. This can differ based on the application that needs to be created, SDK being used, etc... This page introduces the very basic concept of MIDlet creation using Eclipse.)

In order to create a new MIDlet, you simply create a new class that derives from the class javax.microedition.midlet.MIDlet. If you select Other from the New button, an option is provided to make this easy for you.

screenshot

The first wizard pane is standard for almost all Eclipse projects. Here, you provide the name of the project, and the location for the project contents.

newProject

 

newMIDlet

In the second pane, you choose which of the available device definitions you will use for compiling the project and for running and debugging. If necessary, you can change this setting later using the Project Properties. In addition, you may alter the default location for the project's JAD file on this page. The JAD file specified in this field must be created relative to the project's root folder. You may later change the JAD file later using a rename or move refactoring within the Package Explorer. The following window shows the selction of the properties for the MIDlet suite. Here the chosen target device is a Sony Ericsson W800 phone emulator. This can be later changed in the 'Run -> Run...' dialogue from the Eclipse IDE.

MIDletProperties

The final pane provides you with the opportunity to adjust source settings, related projects and libraries, etc. These are standard Eclipse settings. If your project requires an external library (e.g. kXML, etc.), add the JAR file(s) to the list on the "Libraries" tab. EclipseME will automatically manage these JAR files along with your compiled class files.

java settings

Once you have completed the above steps, you will have a project that looks like this in your workspace.

package explorer

From the 'File' menu, you can choose 'new -> other' to obtain a blank editor page for inserting the java code.

new midlet

Here onwards , the normal lifecycle of a code can be assumed.

   
 
   
 
   
 
   
Disclaimer: The information provided on this page comes without any warranty whatsoever and the author is not responsible for the content of external websites. Use it at your own risk. Just because a program, book or service is listed here or has a good review does not mean that we endorse or approve of the program or of any of its contents. All the other standard disclaimers also apply.