Running the ObjectDeletion Sample from the Command Line
To run the ObjectDeletion 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 -o e2p
In a different Command Prompt window, perform the following:
Navigate to the JC_CLASSIC_HOME
\samples\classic_applets\ObjectDeletion\appletdirectory.Enter the
antallcommand at the command prompt.In this sample, the
antallcommand generates the APDU script.
In the
crefCommand Prompt window, stop the RI by usingctrl+c.In the
crefCommand Prompt window, restart the RI by entering the following command:cref-oe2p-ie2pIn the applet Command Prompt window, enter the following command at the command prompt:
ant run1-1The
antrun1-1command executes theod1-1.scrAPDU 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 theod1-1.expected.outfile.In the
crefCommand Prompt window, restart the RI by entering the following command:cref-oe2p-ie2pIn the applet Command Prompt window, enter the following command at the command prompt:
ant run1-2The
antrun1-2command executes theod1-2.scrAPDU script and creates an output file (default.out) in theappletdirectory. See Step 5 for the command line required to specify a custom output file name.Verify that the contents of the output file in the
appletdirectory are the same as the contents of theod1-2.expected.outfile.In the
crefCommand Prompt window, restart the RI by entering the following command:cref-oe2p-ie2pIn the applet Command Prompt window, enter the following command at the command prompt:
ant run1-3The
antrun1-3command executes theod1-3.scrAPDU script and creates an output file (default.out) in theappletdirectory. See Step 5 for the command line required to specify a custom output file name.Verify that the contents of the output file in the
appletdirectory are the same as the contents of theod1-3.expected.outfile.In the
crefCommand Prompt window, restart the RI by entering the following command:cref-oe2p-ie2pIn the applet Command Prompt window, enter the following command at the command prompt:
ant run2The
antrun2command executes theod2.scrAPDU script and creates an output file (default.out) in theappletdirectory. See Step 5 for the command line required to specify a custom output file name.Verify that the contents of the output file in the
appletdirectory are the same as the contents of theod2.expected.outfile.In the
crefCommand Prompt window, restart the RI by entering the following command:cref-oe2p-ie2pIn the applet Command Prompt window, enter the following command at the command prompt:
ant run2-2The
antrun2-2command executes theod2-2.scrAPDU script and creates an output file (default.out) in theappletdirectory. See Step 5 for the command line required to specify a custom output file name.Verify that the contents of the output file in the
appletdirectory are the same as the contents of theod2-2.expected.outfile.In the
crefCommand Prompt window, restart the RI by entering the following command:cref-oe2p-ie2pIn the applet Command Prompt window, enter the following command at the command prompt:
ant run3The
antrun3command executes theod3.scrAPDU script and creates an output file (default.out) in theappletdirectory. See Step 5 for the command line required to specify a custom output file name.Verify that the contents of the output file in the
appletdirectory are the same as the contents of theod3.expected.outfile.In the
crefCommand Prompt window, restart the RI by entering the following command:cref-oe2p-ie2pIn the applet Command Prompt window, enter the following command at the command prompt:
ant run3-2The
antrun3-2command executes theod3-2.scrAPDU script and creates an output file (default.out) in theappletdirectory. See Step 5 for the command line required to specify a custom output file name.Verify that the contents of the output file in the
appletdirectory are the same as the contents of theod3-2.expected.outfile.

