C H A P T E R  8

Generating a CAP File From a Java Card Assembly File

Use the capgen tool to generate a CAP file from a given Java Card Assembly file. The CAP file that is generated has the same contents as a CAP file produced by the Converter. The capgen tool is a backend to the Converter.

Running capgen

The file to invoke capgen is a shell script (capgen) on the Solaris or Linux platform, and a batch file (capgen.bat) on the Microsoft Windows platform.

Command line syntax for capgen is:

capgen [-options] <filename>

where <filename> is the Java Card Assembly file.

capgen Command Line Options

The option values and their actions are:

TABLE 8-1 capgen Command Line Options




Prints a help message.


Suppresses all banner messages.

-o <filename>

Allows you to specify an output file. If the output file is not specified with the -o flag, output defaults to the file a.jar in the current directory.


Outputs the version information.