Adding a Java Card Applet to a Java Card Package

If a CAP file is an applet CAP file, then you need to configure the applets that are contained in it. A Java Card Applet is a class contained in a Java Card package.

To add a Java Card Applet to a Java Card package:
  1. Right-click on the Java Card project and select the Java Card and CAP Files Settings.
  2. In the CAP Files Settings page, click the arrow to the left of the Java Card CAP Files.
  3. Select Java Card Packages and the CAP file in which you want to add the Applet.
  4. Select the package that contains the Applet you want to add.
  5. Click Add new applet.
  6. In the Configure Java Card Applet window, set the converter tool parameters for the applets:
    1. In the Applet section, click Browse… and select the applet class from the list.
    2. In the Applet AID section, enter a value for the PIX part of the AID of the Java Card Applet. The RID part of the AID is automatically populated based on the Java Card package configuration.
  7. Click OK.

    The window closes, the CAP file configuration is updated, and the project is rebuilt.

Managing Java Card Applets

To manage Java Card Applets and to edit them, use the CAP file project settings:

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

    A list with Applets appears.

  5. Select a CAP file and Java Card package combination from the combo list.

    The list is populated with the Java Card Applets configured for the selected combination.

  6. To manage the Java Card Applets configured for the selected combination, perform the following tasks:
    1. Click Add to add a new Java Card Applet to the selected CAP file or package combination.
    2. Click Edit to edit an already configured Java Card Applet.
    3. Click Delete to delete a Java Card Applet from the selected CAP file or package combination.