Running the Channels Sample from the Command Line
To run the Channels sample:
Open a Command Prompt window and perform the following:
Navigate to the JC_CLASSIC_HOME
\bindirectory.Start the RI by entering the following command at the command prompt:
cref
Open a second Command Prompt window and perform the following:
Navigate to the JC_CLASSIC_HOME
\samples\classic_applets\Channels\appletdirectory.Enter the
antallcommand at the command prompt.In this sample, the
antallcommand builds the applet, executes the APDU script, and creates an output file in theappletdirectory. The ant script names the output file eitherdefault.outor the custom name specified in the command line. To specify a custom name for the output file, use the following command:ant-Dredirect.output=outputfile_name targetIn this command, outputfile_name represents the name of the output file and target represents either the
allorrunoptions of theantcommand. In this case, thealltarget is used. This command redirects the output from the APDUtool execution to the outputfile_name file.
Verify that the contents of the output file in the
appletdirectory are the same as the contents of theChannels.expected.outfile.

