Running the ObjectDeletion Sample from the Command Line

To run the ObjectDeletion sample using command line (on Linux systems make sure that executable flags for executable files are set correctly):

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

    1. Navigate to the JC_HOME_SIMULATOR\runtime\bin directory.

    2. Start the Simulator by entering one of the following commands at the command prompt:

      jcsw (on Windows systems) or ./jcsl (on Linux systems).

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

    1. Navigate to the JC_HOME_SIMULATOR\samples\ObjectDeletion directory.

    2. Enter either build.bat or ./build.sh command at the command prompt (according to your operating system) in order to build Java Card applets and Java client.

    3. Enter either run.bat or ./run.sh (according to your operating system) to load the applets into the Simulator, send all APDUs and clean up afterwards.

  3. Inspect client’s output on the console – all APDUs should have been confirmed by the simulator with a positive response APDU (0x9000).