JavaMEEmbeddedHowTo

Contents


Java ME 8 Embedded How To

Author: Roman Svitanic

Version 1.0

Set up Java ME Platform

  • In Tools/Java Platforms click Add Platform... and select Java ME CLDC Platform Emulator

File:J2ME8_Platform1.png

  • Follow the wizard and specify the path to ME SDK.

File:J2ME8_Platform2.png

Create Java ME 8 Embedded Project

  • In File/New Project... dialog choose Java ME Embedded category and Java ME Embedded Application project.

File:J2ME8_ProjectWizard.png

  • Select installed Java ME 8 Platform and JDK platform, from which the tools like javac or javadoc will be used. Although it is possible to use JDK 1.7 if it's a default platform and no JDK 1.8 is installed, it is strongly recommended to use JDK 1.8.

File:J2ME8_ProjectWizard2.png

Customizing the project

  • Right click on a project node in project's explorer and select

Selecting Optional Packages

  • Some Java ME Emulators/Devices may be shipped with libraries that others are not.
  • Platform boot classpath can be constructed by selecting required optional packages.
  • These selections can be different in different run configurations of the project.

File:J2ME8_ProjectCustomizer.png

Running the project

  • Use standard actions from NetBeans toolbar or context menu.
  • If Java ME application that should be executed doesn't contain any midlet, following dialog is displayed (In this dialog some (or all) midlets from all available midlets in the project can be selected):

File:J2ME8_MidletSelection.png

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo