Adding a Java Card Package to a CAP File

To include a CAP file in the build, it must be in the configured state. A Cconfigured CAP file is a CAP file that has at least one Java Card package added to it.

To add a Java Card package to a CAP file:
  1. Right-click on the Java Card project and select Java Card and CAP Files Settings.
  2. In the Java Card CAP Files page, select a CAP file from the list.
  3. Click Add new package.

    Note:

    If the CAP file is a compact CAP file and it is already configured, then Add new package is disabled. A compact CAP file can contain a maximum of one package only.
  4. In the Configure Java Card package dialog, configure the following converter tool specific parameters:
    1. Next to the Package Name field, click Browse… and select a Java package from the project
    2. Enter values for the Java Card package AID and version fields.
    3. Verify the converter tool flags. The Private flag is available only if the CAP files are extended CAP files.
  5. Click OK.

    A dialog appears prompting you to confirm if a Java Card Applet needs to be configured for the package that you just created. If you click Yes, the Java Card Applet configuration dialog appears. If you click No, the dialog closes, the CAP file configuration is updated, and the project is rebuilt.

Managing the Java Card Package

To manage the Java Card package added to a CAP file and to edit the Java Card package, use the CAP file project settings:

  1. Right-click on the Java Card project and select Java Card and CAP Files Setting.
  2. In the CAP Files Settings page, click the arrow to the left of the Java Card CAP Files.
  3. Select Java Card Packages.

    A list with package names appears.

  4. Select a CAP file from the combo list.
    The list is populated with the Java Card packages configured for the selected CAP file.
  5. To manage the Java Card packages configured for the selected CAP file, perform the following tasks:
    1. Click Add to add a new Java Card package to the selected CAP file. If the CAP file is a configured compact file, this button is disabled.
    2. Click Edit to edit an already configured Java Card package.
    3. Click Delete to delete a Java Card package from the selected CAP file.