Beginner Guide: Set up J2ME Environment for Eclipse

J2ME is used to develope the applications to run on mobile devices. J2ME application uses Java compiler, WTK and obfuscator to preverify the classes, package into jad, jar files.

J2ME is similar to java application with some slight changes in the syntax. In J2ME  instead of main method, it contains a MIDlet class, which starts the application. Each J2ME application contains one MIDlet class.

Set up development environment:


  • Sun Wireless Tool Kit (WTK) to run the application on simulator. 
  • EclipseME 
Download WTK from Sun's site
Install Eclipse (3.3 or higher) and use software update to install the eclipseME plugin. Install EclipseME plugin use the update site "http://www.eclipseme.org/updates/ " or Beginner to eclipse can use the http://eclipseme.org/docs/installEclipseME.html to install eclipseME plugin.

In the eclipseME add the WTK Installed directory using - Eclipse-->window-->preferences-->J2ME-->Device Management--> Click on "Import" , then add the WTK installed directory and click on  "refresh".

After finishing the above steps, start application development.