Mobile application development tutorial in Java

Content on this page applies to NetBeans IDE 7.3 and more recentSungmoon Cho, Alyona Stashkova

Mobile embedded applications are employed in small embedded devices such as industrial metering devices, vending machines, security systems, modems, home electronics devices, and similar devices with either simple or no display and with some limited network connectivity. This example shows you how to develop a new Java ME embedded project in the NetBeans IDE using the Oracle Java Micro Edition Embedded platform that includes support for JSR 228, the Information Module Profile-Next Generation API (IMP-NG). It will also explain how to debug and profile your own IMlet using NetBeans support for Oracle Java ME Embedded.

Contents

To complete this tutorial, you need the following software and resources:

Important: This tutorial runs on Win32 compatible platforms only.

Installing Oracle Java ME Embedded

Plugins dialog boxTo set up the NetBeans IDE with the Oracle Java ME Embedded software for the Windows platform, you need to:

  • install Oracle Java ME SDK
  • activate the Java ME feature in the NetBeans IDE
  • install the Oracle Java ME Embedded platform in the NetBeans IDE

To install Oracle Java ME SDK:

  1. Click the Accept License Agreement option.
  2. Download an Oracle Java ME SDK installer file (for example, oracle-jmesdk-3-4-rr-win32-bin.exe) and save it to any location on your computer.
  3. Double-click the installer file to run the installer, and follow the instructions.
    When the installation is complete, the Java (TM) ME Platform SDK Device Manager icon appears in the Windows system tray.

Installer dialog boxTo activate the Java ME feature:

  1. Choose Tools > Plugins from the main IDE's toolbar.
  2. In the Plugins dialog box, click the Installed tab and select Java ME in the list of available features.
  3. Click Activate.
  4. At the Welcome panel of the Installer dialog box, click Activate.
  5. When the activation is successfully completed, click Finish.
  6. Click Close to close the Plugins dialog box.

To install the Oracle Java ME Embedded platform:

  1. Choose Tools > Java Platforms.
    The Java Platform Manager dialog box displays.
  2. Click Add Platform.
  3. In the Select Platform Type of the Add Java Platform wizard, select Java ME CLDC Platform Emulator and click Next.
    The IDE displays the Choose directory to search for platforms dialog box.
  4. Select the directory you installed the Java ME SDK Platform to (for example, C:\Java_ME_Platform_SDK_3.2) and click Open.
  5. In the Platform Folders panel of the Add Java Platform wizard, ensure the platform you selected in the previous step is chosen and click Next.
  6. As soon as the IDE detects the platform, click Finish in the Detected Platforms panel of the the Add Java Platform wizard. The Oracle Java ME Platform is now registered in the Netbeans IDE.
  7. In the Java Platform Manager dialog box, click Close.

Now your NetBeans IDE is set up for mobile development.

Creating an Embedded Project

Creating a new project is your first step in developing a new Java ME Embedded application with the NetBeans IDE.

Name and Location panel New project created

scrubs vending machine

You might also like

Android Application Development Tutorial - 107 - Toggling
Android Application Development Tutorial - 107 - Toggling ...
java application development tutorial 2 java calculator 2
java application development tutorial 2 java calculator 2

WebView Exploit Can Make Calls From Your Phone  — VPN Creative
Clicking on his link in Messenger immediately initiated a telephone call without warning; according to Neculaesei, this was a sign that Facebook mobile developers likely did not read Apple's URL Scheme documentation.

Q&A

avatar
Where might one find guidelines for Mobile Web Development?

There are plenty of places online which where you could find some great information on guidelines for Mobile Web Development. This includes the site Webcredible.