Running the StringHandlingApp Sample from the Command Line
Running the StringHandlingApp Sample from the Command Line
To run the StringHandlingApp sample:
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
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:
antall
In the first Command Prompt window, restart the simulator by typing:
cref -i stringapp -o stringapp
In the second Command Prompt window, navigate to the JC_HOME_SIMULATOR\samples\classic_applets\StringHandlingApp\liblocal directory, and at the command prompt, enter:
antall
In the first Command Prompt window, start the simulator by entering the following command at the command prompt:
cref -i stringapp
In the second Command Prompt window, navigate to the JC_HOME_SIMULATOR\samples\classic_applets\StringHandlingApp\applet directory and, at the command prompt, enter:
antall
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.