Developers use the Normalizer to generate application modules for Java Card 3 Platform classic applets they are creating or from classic applets created for previous versions of the Java Card platform. These application modules contain CAP files and are downloadable on both the Java Card 3 platform Classic Edition and Connected Edition smart cards.
The output from the tool is a classic module that contains the class files, the CAP components of the CAP file, SIO proxies for classic SIOs (if required), and associated classic application descriptors. The input to the tool must be classic CAP files and associated export (EXP) files. If the input files are not classic CAP files, the normalization fails.
The file to invoke the Normalizer is a batch file (normalizer.bat
) that must be run from a working directory of JC_CLASSIC_HOME\bin
in order for the code to execute properly.
To run the Normalizer:
normalizer.bat
subcommand [options]
The following is a list of the subcommands for the Normalizer:
normalize
- Creates the package class files.
copyright
- Displays detailed copyright notice
help
- Displays information about the Normalizer command
Use the normalize
subcommand and its options to create the package class files. Options are used with the normalize
subcommand to specify input files, export paths, export file names, and output directories.
Table 6-1 identifies the normalize
subcommand options and provides their descriptions.
Table 6-1 normalize Subcommand Options
Option | Description |
---|---|
or
|
Specifies the input CAP file name. |
or
|
Specifies the path of the export files used by the tool. |
or
|
Specifies the export files used by the tool. |
or
|
(Optional) This the default setting and does not have to be explicitly set. Specifies the output directory that contains the export file. |
or
|
Specifies the directory to keep class files, proxy classes, and CAP components. The output format is as follows: directory/application classes/ |
The following is the format of the normalize
subcommand. Options in the subcommand are used in the sequence that are presented in Table 6-1. In this format example, an input file and an output directory are specified as options:
normalizer.bat
normalize
--in
file --out
directory
The copyright
subcommand displays the detailed copyright notice. There are no options associated with this subcommand.
The help
subcommand displays information about the Normalizer command. Options are used with the help
subcommand to specify the information that is displayed about each subcommand.
The following command displays summary help about the Normalizer:
normalizer.bat help