Documentation



Java Card 3 Platform Development Kit User Guide, Classic Edition

Running the StringHandlingApp Sample from the Command Line

To run the StringHandlingApp sample:

  1. Open a Command Prompt window, navigate to the JC_CLASSIC_HOME\bin directory, and start the RI by entering the following command at the command prompt:

    cref -o stringapp

  2. Open a second Command Prompt window, navigate to the JC_CLASSIC_HOME\samples\classic_applets\StringHandlingApp\lib directory, and, at the command prompt, enter:

    ant all

  3. In the first Command Prompt window, restart the RI by typing:

    cref -i stringapp -o stringapp

  4. In the second Command Prompt window, navigate to the JC_CLASSIC_HOME\samples\classic_applets\StringHandlingApp\liblocal directory and, at the command prompt, enter:

    ant all

  5. In the first Command Prompt window, start the RI by entering the following command at the command prompt:

    cref -i stringapp

  6. In the second Command Prompt window, navigate to the JC_CLASSIC_HOME\samples\classic_applets\StringHandlingApp\applet directory and, at the command prompt, enter:

    ant all

  7. Verify that the contents of the output file, default.output, in the applet directory are the same as the contents of the test.expected.out file.
Close Window

Table of Contents

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

Expand | Collapse