Documentation



Java Card 3 Platform Development Kit User Guide, Classic Edition

Running the SecureRMIPurse Sample from the Command Line

To run SecureRMIPurse:

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

    1. Navigate to the JC_CLASSIC_HOME\bin directory.

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

      cref -o demoee

    Starting the RI with the -o option causes the RI to save the EEPROM contents to a file named demoee. See Using the Reference Implementation for more information about using cref and its command line options.

  2. Open a second Command Prompt window and perform the following:

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

    2. Enter the following command at the command prompt:

      ant all

      In this sample's applet directory, the ant all command executes the APDU script and installs the secure RMI application.

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

    cref -i demoee

  4. In the applet Command Prompt window, perform the following:

    1. Navigate to the JC_CLASSIC_HOME\samples\classic_applets\SecureRMIPurse\client directory.

    2. Enter the following command at the command prompt:

      ant all

      In this sample's client directory, the ant all command executes the APDU script that generates the securermidemo.expected.out file.

  5. Verify that the contents of the securermidemo.expected.out file in the client directory are the same as the contents of the securermidemo.expected.out file in the SecureRMIPurse directory.

Close Window

Table of Contents

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

Expand | Collapse