7 Working With CAP Files

This chapter describes how you can generate a CAP file from a given Java Card Assembly file using the capgen tool, and how you can produce an ASCII representation of a CAP file using the capdump tool.

One of the files generated by the Converter is the CAP file. The CAP file utilizes the JAR file format, and contains a set of components that describes a Java language package. In addition to the components, the CAP file also contains the manifest file META-INF/MANIFEST.MF, which you can use to improve distribution.

Note:

The capgen and capdump tools work only with CAP files generated with versions 2.2.2 and earlier of the Java Card development kit. This chapter contains a sample of the syntax used in CAP files as they apply to version 2.2.2 CAP files and related tools. The CAP file syntax was updated in the Development Kit version 3.x. This chapter deals primarily with the capgen and capdump tools and the earlier manifest file format that is still valid and supported with the 3.x Classic Edition.

This chapter contains the following sections: