Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Creating and Editing Projects

About Projects

CLDC Projects

CDC Projects

Creating a CLDC Project

Choose Project

Name and Location

Platform Selection

Specify WTK Project

Creating a CDC Project

Choose Project (CDC)

Platform Selection (CDC)

Specify CDC Toolkit Project

Working With Projects

Viewing Project Files

Creating a New MIDlet

Importing MIDP Projects

Importing CDC Projects

Adding Files to a Project

Find in Files

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Lightweight UI Toolkit

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference


JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support


Creating a CLDC Project

A CLDC project uses the MIDP application template and preselects devices that support MIDP and CLDC. The SDK provides a wizard for creating new projects quickly and easily. Most project properties can be edited later by changing the project properties.

The project provides a basic infrastructure for CLDC development. You provide source files, resource files, and project settings as needed.

  1. Select File > New Project.

    The New Project wizard opens. Java ME SDK is the only category.

  2. Follow the prompts in the New Project wizard, consulting Help if necessary. See Choose Project, Name and Location , Platform Selection, and Specify WTK Project.

  3. To run the new project, follow the steps in Running a Project, except select your new project instead of a sample project.

  4. Be sure to exit or close the application when you are finished.

    Once the emulator is launched, it runs as an independent process. Pressing the red stop button in the SDK user interface or closing the SDK does not stop the application running in the emulator.

    Applications usually provide a way to terminate. For example, most of the samples offer an Exit soft key, or an option in the soft menu. You can close the application and leave the emulator running (so you do not have to wait for the emulator to open the next time you run the project).

    If you want to close the emulator and stop the project build process, select Application > Exit.

Now that the project has been created, you can modify its properties as described in the following topics: Viewing General Project Properties, Selecting a Platform, Editing Application Descriptor Properties, Building a Project, Running a MIDP Project.