Sun Logo


Build Guide

Sun Javatrademark Wireless Client Software 2.2

Java Platform, Micro Edition

12-2008



Contents

Figures

Tables

Preface

1. Introduction

Directory Structure

Tools

Windows Platform Tools

Optional Windows Platform Tools

Linux Platform Tools

Environment Variables and Build Options

2. Quick Start: Building on Windows for Windows

Setting Up on Windows

Setting Up Your Environment

Setting Your PATH

Using Windows Short Names

Verifying Windows Setup

Setting Up For the Build

Building the JavaCall API

Building PCSL

Building CLDC

Building Sun Java Wireless Client Software

Running Sun Java Wireless Client Software

Moving Sun Java Wireless Client Directories

Running in the Java ME SDK Emulator

3. Quick Start: Building on Linux for ARM

Setting Up Your Environment

Building PCSL

Building CLDC

Building Java Wireless Client Software

Running Java Wireless Client Software

4. JavaCall Build System

JavaCall Build Overview

JavaCall Build Variables

Extending the Build System

JavaCall Directory Structure

5. PCSL Build System

PCSL Build Overview

Output

Debugging Symbols

API Documentation

Selecting Modules

About Stubs

Building Individual Services

Network Service

Running Unit Tests

Extending the Build System

Creating a New Platform Makefile

Creating New OS and Compiler Makefiles

Creating a New Module

6. CLDC Build System

CLDC Build Overview

CLDC Build System Variables

7. Java Wireless Client Software Build System

Overview

Output

Debugging Symbols

API Documentation

Build Options

CLDC Selection

Mapping Configuration Variables

Module Selection

Building a Native Application Manager

To Build a Complete Native Application Manager

To Build a Java Application Manager with a Native UI

Native AMS Graphical UI Screens

Supporting Folder Functionality in a Native AMS

Native AMS Image Resource Policy

Changing Graphical UI Image Storage Location

Dynamic Components

Virtual Keyboard Support

Multitasking

Startup Performance

Resource Allocation Policy

Cryptography Selection

Server Socket Selection

Runtime Java Platform Properties Selection

Network Monitoring

Dynamic Logging

Specifying a Target CPU and Device

Build Constraints

Building Optional Package APIs

About Optional JSRs

Optional Package JSRs and Other Build Components

Optional API Variable Pairs

Using the JSR Variable Pair

Using the ABSTRACTIONS Variable Pair

Using the make Command Line

Using the make Command Line with Makefiles

Optional Package API Details

Building JSR 120 and JSR 205

Building JSR 135, JSR 234, and JSR 75

The USE_JPEG Variable

Setting Additional Multimedia Build Variables

Building with Microsoft Visual Studio 2005

Building JSR 226, JSR 172, and JSR 280

Building JSR 229 and JSR 120

Building JSR 177

Building JSR 239

Building for Wireless Toolkit 2.5.2

Working With Stubs

Configuring the Build System for Stubs

Updating the Build System for Filled-in Stub Functions

Updating the Source Files and Build System after Porting

Glossary

Index