Overview of Converting and Exporting Java Class Files
The Converter processes all of the Java class files that make up an application (or a library) and creates a binary file (CAP file) that can be deployed and loaded on a Java Card platform. It also produces other files (export files and JCA files) that are used in the development and deployment process. The CAP file contains a manifest file that provides human-readable information about its content. See Working with CAP Files and Using Export Files, for more information.
The Java Card Platform Specification, Version 3.1 defines a new version of the CAP file that supports the following formats:
- Compact CAP file format - A compact CAP file contains a single Java Package, a method component of maximum 64 K, and may contain static resources. It can represent an application or a shared library.
- Extended CAP file format - The extended CAP file format can contain multiple Java packages and a method component larger than 64 K. It gives control over which package should be exported as a shared library.
The compact CAP file is supported in all Java Card products and offers the binary backward compatibility with all previous formats. The extended CAP file is optionally supported in Java Card products, version 3.1 and above.
-
See the Java Card Platform Virtual Machine Specification, Classic Edition, Version 3.1 for more information on the CAP file and its format.
-
See Chapter Programming for the Large Address Space for more information on using the Compact CAP file format to take advantage of large memory storage in secure elements.
- See Chapter Programming Large Java Card Applications With Multiple Packages for more information on using the Extended CAP file format.