View RSS Feed

My Java Tips

Creating J2ME MIDlet Project

Rate this Entry
by , 11-03-2011 at 07:31 PM (1670 Views)
Many guys who are new to mobile application development often question: “Does Eclipse support MIDlet development?”. Yes it does. In the next few posts, I will explain how you can create a J2ME project in Eclipse.

To cleate a EclipseME project, we should use the New Project Wizard and select J2ME Midlet Suite from within the J2ME item.

Name:  j2me_midlet_suite.PNG
Views: 618
Size:  9.8 KB

You will then see a wizard pane which is actually the standard for almost all Eclipse projects. You must have gone through that if you have worked in Eclipse. You will provide the name of the project and the location for the project contents.

Then you will be taken to second pane where you choose which of the available device definitions you will use for compiling the project and for running and debugging. You may change these setting later using the Project Properties.

You also provide default location for the project's JAD file on this page which may be changed later as well. Remember: The JAD file should be created relative to the project's root folder. Yes, you may later change the JAD file within the Package Explorer.

Name:  screen_2.PNG
Views: 179
Size:  10.0 KB

We have gone through the first 2 panes of the MIDlet development wizard. Now lets see what is the final pane all about.

The final pane is there to adjust source settings, related projects and libraries, etc. These are standard Eclipse settings. Add the JAR file(s) to the list on the "Libraries" tab if your J2ME project required some other libraries. EclipseME will automatically manage these JAR files along with your compiled class files.

Name:  screen_3.PNG
Views: 181
Size:  10.6 KB

Once all steps are done, you will have a project that looks like this in your workspace:

Name:  screen_4.PNG
Views: 177
Size:  13.5 KB

Submit "Creating J2ME MIDlet Project" to Facebook Submit "Creating J2ME MIDlet Project" to Digg Submit "Creating J2ME MIDlet Project" to Submit "Creating J2ME MIDlet Project" to StumbleUpon Submit "Creating J2ME MIDlet Project" to Google

Tags: None Add / Edit Tags
Eclipse , Java ME