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

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

Security Domains

Setting Security Domains

Specifying the Security Domain for an Emulator

Specifying the Security Domain for a Project

Signing a Project

Managing Keystores and Key Pairs

Working With Keystores and Key Pairs

Creating a Keystore

Adding an Existing Keystore

Creating a New Key Pair

Removing a Key Pair

Importing an Existing Key Pair

Managing Root Certificates

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


Signing a Project

Devices use signing information to check an application's source and validity before allowing it to access protected APIs. For test purposes, you can create a signing key pair to sign an application. The key pair consists of two keys:

You can create a key pair with the Keystores Manager as described in Managing Keystores and Key Pairs.

Follow these steps to sign a project with a signing key pair.

  1. Right-click on a project and select Properties.

  2. From the Build hierarchy, select Signing.

  3. Check the Sign Distribution checkbox.

  4. Choose a keystore from the Keystores drop-down menu, or click Open Keystores Manager to create a new keystore.

    The Certificate Details area displays the Alias, Subject, Issuer, and validity dates for the selected keystore.

  5. Choose a key pair alias from the drop-down menu.

    A keystore might be accessed by several key pairs, each with a different alias. If you prefer to use a unique key pair, select Open Keystores Manager and create a new key pair. See Creating a Keystore.

  6. Click OK.

Note - CDC projects cannot be signed with this tool. To sign a CDC project use the JDK jarsigner command from the command line. For example: jarsigner.exe -keystore keystore.ks -storepass keystorepwd MyCdcApp.jar dummyCA

See Signing.