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\bindirectory. -
Start the simulator by entering the following command at the command prompt:
cref
Note:
crefcommand 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_TOOLSandJC_HOME_SIMULATOR(path to JCDK install folder) as environment variables. -
Navigate to the
JC_HOME_SIMULATOR\samples\classic_applets\SignatureMessageRecovery\appletdirectory. -
Enter the following command at the command prompt:
ant run1The
antrun1command builds the applet and runs thesigMsgPartRec.scrscript that generates thesigMsgPartRec.actual.outputfile.
-
-
Verify the contents of the
sigMsgPartRec.actual.outputfile in theappletdirectory are the same as the contents of thesigMsgPartRec.expected.outputfile in theSignatureMessageRecoverydirectory. -
In the
crefCommand 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 run2The
antrun2command builds the applet and runs thesigMsgFullRec.scrscript that generates thesigMsgfullRec.actual.outputfile. -
Verify the contents of the
sigMsgfullRec.actual.outputfile are the same as the contents of thesigMsgfullRec.expected.outputfile.