Build Guide
Sun Java
Wireless Client Software 2.1
Java Platform, Micro Edition
04-2008
Figures
Tables
Preface
1. Introduction
Directory Structure
Tools
Environment Variables and Build Options
2. Quick Start: Building on Windows for Windows
Setting Up on Windows
Setting Up Your Environment
Setting the PATH
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 WTK 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
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
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 and JSR 234
The USE_JPEG Variable
Building JSR 226 and JSR 172
Building JSR 229 and JSR 120
Building JSR 177
Building JSR 239
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
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.