Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java ME (J2ME) Developer Guide
Previous Page Home Next Page

Running a Java ME MIDlet

In this section, you will learn more about running Java ME MIDlets in the workbench.

Using the "Run As" context menu item

  1. In the Package Explorer view, find the main MIDlet class and double-click it to open it in the java editor.
  2. Right click on the main MIDlet class in the Package Explorer and select Run As > Emulated Java ME MIDlet. The Run As context menu item is also available in other places, such as the Outline view and the Java editor.

    Contextual launch

  3. A configuration is automatically created to launch the MIDlet.


  4. The selected class will be launched using the Java ME SDK device previously configured for use in the MIDlet project.

Using the Run button from the workbench toolbar

  1. Click on the Run button from the workbench toolbar, which will launch the currently selected resource or active editor.


  2. If prompted, select the Emulated Java ME MIDlet option.




  3. A configuration is automatically created to launch the MIDlet.
  4. The selected MIDlet will be launched using the Java ME SDK device previously configured for use in the MIDlet project.

Through the Application Descriptor overview page

  1. In the Package Explorer view, find the Application Descriptor file and double-click it to open it in the java editor.

  2. On the Running section, click on the Launch as emulated Java ME MIDlet.

  3. A configuration is automatically created to launch the MIDlet.
  4. The selected MIDlet will be launched using the Java ME SDK device previously configured for use in the MIDlet project.

Manually creating the configuration to launch a MIDlet

    href="eclipse_java_me_javascript:executeCommand("org.eclipse.debug.ui.commands.OpenRunConfigurations")"> Opens the Run Launch Configurations dialog Run > Open Run Dialog... from the workbench menu bar.  This opens a dialog that lets you create, modify, and delete launch configurations of different types.
  1. Select Wireless Toolkit Emulation in the left hand list of launch configuration types, and press the New button in the toolbar. This will create a new launch configuration for your MIDlet Project. The tabs on the right hand side allow you control specific aspects of the launch.


By default, the configuration is created using the Over The Air option. See here for more details on the different launch modes.



 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire