Running the StringHandlingApp Sample from the Command Line

To run the StringHandlingApp sample:

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

    cref -o stringapp

  2. Open a second Command Prompt window, set ANT_HOME, JC_HOME_TOOLS and JC_HOME_SIMULATOR as environment variables, navigate to the JC_HOME_SIMULATOR\samples\classic_applets\StringHandlingApp\lib directory, and at the command prompt, enter:

    ant all

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

    cref -i stringapp -o stringapp

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

    ant all

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

    cref -i stringapp

  6. In the second Command Prompt window, navigate to the JC_HOME_SIMULATOR\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.