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


Working With Projects

The logical view of the project, shown in the Projects window, provides a hierarchy of sources and resources. Right-click on the project node to see actions related to the project:

New. Opens a form to build a new object for the current project. The new object is placed in the project’s file structure by default, but you can control the file name and location. The possible objects are dependent on the currently selected project. For example, if the project is CLDC, the options are MIDlet, Java class, Java package, or Java interface. Selecting New > Other allows you to add different types of files to the project. For a sample procedure, see Generating Stub Files from WSDL Descriptors.

Build. Builds a distribution Java archive (JAR) file. The build process is controlled by project properties, as described in Building a Project.

Clean & Build. Cleans, then builds a distribution JAR file.

Clean. Cleans the build files.

Run. Runs the project with the default device, as specified on the Selecting a Platform property page.

Set as Main Project. Toolbar actions, such as clicking the green Run button, act upon the main project.

Close. Close the current project. Be sure that any processes are stopped, as closing a project might not stop the emulator.

The Source Packages node encapsulates all the Java packages in the project. Right-click on the Source Packages node and choose New to add a new MIDlet to your application.

The Resources node encapsulates all resources and libraries of the active configuration. Right-click the Resources node to add Projects, JARs, folders, and libraries as resources for your application. You cannot add or remove inherited resources.

See also: Viewing Project Files, Creating a CLDC Project, Creating a CDC Project, Creating a Stubs for BD-J Platform Project, About Projects, and Importing CDC Projects.