Sun Logo


Build Guide

Sun Javatrademark Wireless Client Software 2.0

Java Platform, Micro Edition

05-2007



Contents

Preface

1. Introduction

Directory Structure

Tools

Environment Variables and Build Options

2. Quick Start: Building on Windows for Windows

Setting Up on Windows

Setting the PATH

Verifying Windows Setup

Setting Up For the Build

Building the JavaCall API

Building PCSL

Building CLDC

Building Java Wireless Client Software

Running Java Wireless Client Software

3. Quick Start: Building on Linux for Linux

Setting Up Your Environment

Building PCSL

Building CLDC

Building Java Wireless Client Software

Running Java Wireless Client Software

4. 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

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

Mapping Configuration Variables

7. Java Wireless Client Software Build System

Overview

Output

Debugging Symbols

API Documentation

Build Options

CLDC Selection

Module Selection

Native AMS Image Resource Policy

Multitasking

Startup Performance

Resource Allocation Policy

Cryptography Selection

Server Socket Selection

Runtime Java Platform Properties Selection

Specifying a Target CPU and Device

Build Constraints

Including Optional APIs

Optional API Details

Building JSR 120 and JSR 205

Building JSR 135

Building JSR 177

Building JSR 226

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