Documentation



Java Card 3 Platform Development Kit User Guide, Classic Edition

Running the SignatureMessageRecovery Sample from the Command Line

To run the SignatureMessageRecovery sample:

  1. Open a Command Prompt window and perform the following:

    1. Navigate to the JC_CLASSIC_HOME\bin directory.

    2. Start the RI by entering the following command at the command prompt:

      cref

      Note:

      cref command options are not required in this sample.

  2. In a different Command Prompt window, perform the following:

    1. Navigate to the JC_CLASSIC_HOME\samples\classic_applets\SignatureMessageRecovery\applet directory.

    2. Enter the following command at the command prompt:

      ant run1

      The ant run1 command builds the applet and runs the sigMsgPartRec.scr script that generates the sigMsgPartRec.actual.output file.

  3. Verify the contents of the sigMsgPartRec.actual.output file in the applet directory are the same as the contents of the sigMsgPartRec.expected.output file in the SignatureMessageRecovery directory.

  4. In the cref Command Prompt window, restart the RI by using the following command:

    cref

  5. In the applet Command Prompt window, enter the following command at the command prompt:

    ant run2

    The ant run2 command builds the applet and runs the sigMsgFullRec.scr script that generates the sigMsgfullRec.actual.output file.

  6. Verify the contents of the sigMsgfullRec.actual.output file are the same as the contents of the sigMsgfullRec.expected.output file.

Close Window

Table of Contents

Java Card: 3 Platform Development Kit User Guide, Classic Edition

Expand | Collapse