This book contains tips and guidelines for applet developers and for developers of vendor-specific frameworks.

Java Cardtrademark technology combines a subset of the Javatrademark programming language with a runtime environment optimized for smart cards and similar small-memory embedded devices. The goal of Java Card technology is to bring many of the benefits of the Java programming language to the resource-constrained world of smart cards.

The Java Card API is compatible with international standards such as ISO7816 and industry-specific standards such as Europay, Master Card, Visa (EMV).

Who Should Use This Book

This book is for applet developers using the Application Programming Interface for the Java Card Platform, Version 2.2.2 to implement applet management, multiselectable applets, logical channels, APDU I/O, Remote Method Invocation (RMI), and extended APDUs for the Java Card platform.

This book is also for developers who are considering creating a vendor-specific framework based on version 2.2.2 of the Java Card technology specifications.

Before You Read This Book

Before reading this guide, become familiar with the Java programming language, object-oriented design, the Java Card technology specifications, and smart card technology. A good resource for becoming familiar with Java and Java Card technology is the Sun Microsystems, Inc. web site, located at

You must also be familiar with the development tools released with version 2.2.2 of the Java Card platform. For information on these tools, see the Development Kit User's Guide, Java Card Platform, Version 2.2.2.

How This Book Is Organized

Chapter 1 describes how to perform object deletion, applet deletion, and package deletion on the Java Card platform.

Chapter 2 describes how to create and use applets that can be selected for use on multiple channels on the Java Card platform.

Chapter 3 describes how to use APDU I/O to create and use applets.

Chapter 4 describes how to develop applications that use RMI on the Java Card platform.

Chapter 5 describes how to handle extended APDU functionality on the Java Card platform.

Related Books

References to various documents or products are made in this manual. Have the following documents available:

Version 2.2.2 of the Development Kit User's Guide and the Java Card specifications are included in this development kit for the binary release. You can also download the identical specifications bundle separately from the Sun Microsystems' web site at

Typographic Conventions

The following table lists the typographic conventions used in this book.


TABLE P-1 Typographic Convertions For This Book





The names of commands, files, and directories; on-screen computer output

Edit your .login file.

Use ls -a to list all files.

% You have mail.


What you type, when contrasted with on-screen computer output

% su


  1. Run cref in a new window.


Book titles, new words or terms, words to be emphasized



Command-line variable; replace with a real name or value

Read Chapter 6 in the User's Guide.

These are called class options.

You must be superuser to do this.


To delete a file, type rm filename.

Accessing Sun Documentation Online

Access Java platform technical documentation on the web at the Java Developer Connectiontrademark program web site at:

Sun Welcomes Your Comments

We are interested in improving our documentation and welcome your comments and suggestions. Email your comments to us at