Running the SignatureMessageRecovery Sample from the Command Line
To run the SignatureMessageRecovery sample:
-
Open a Command Prompt window and perform the following:
-
Navigate to the
JC_HOME_SIMULATOR\bin
directory. -
Start the simulator by entering the following command at the command prompt:
cref
Note:
cref
command options are not required in this sample.
-
-
In a different Command Prompt window, perform the following:
-
Set
ANT_HOME
(path to ant install folder),JC_HOME_TOOLS
andJC_HOME_SIMULATOR
(path to JCDK install folder) as environment variables. -
Navigate to the
JC_HOME_SIMULATOR\samples\classic_applets\SignatureMessageRecovery\applet
directory. -
Enter the following command at the command prompt:
ant run1
The
ant
run1
command builds the applet and runs thesigMsgPartRec.scr
script that generates thesigMsgPartRec.actual.output
file.
-
-
Verify the contents of the
sigMsgPartRec.actual.output
file in theapplet
directory are the same as the contents of thesigMsgPartRec.expected.output
file in theSignatureMessageRecovery
directory. -
In the
cref
Command Prompt window, restart the simulator by using the following command:cref
-
In the applet Command Prompt window, enter the following command at the command prompt:
ant run2
The
ant
run2
command builds the applet and runs thesigMsgFullRec.scr
script that generates thesigMsgfullRec.actual.output
file. -
Verify the contents of the
sigMsgfullRec.actual.output
file are the same as the contents of thesigMsgfullRec.expected.output
file.