Running the SecureRMIPurse Sample from the Command Line
To run SecureRMIPurse:
Open a Command Prompt window and perform the following:
Navigate to the JC_CLASSIC_HOME
\bindirectory.Start the RI by using the following command at the command prompt:
cref -o demoee
Starting the RI with the
-ooption causes the RI to save the EEPROM contents to a file nameddemoee. See Using the Reference Implementation for more information about usingcrefand its command line options.Open a second Command Prompt window and perform the following:
Navigate to the JC_CLASSIC_HOME
\samples\classic_applets\SecureRMIPurse\appletdirectory.Enter the following command at the command prompt:
ant allIn this sample's
appletdirectory, theantallcommand executes the APDU script and installs the secure RMI application.
In the
crefCommand Prompt window, restart the RI by using the following command:cref -i demoeeIn the applet Command Prompt window, perform the following:
Navigate to the JC_CLASSIC_HOME
\samples\classic_applets\SecureRMIPurse\clientdirectory.Enter the following command at the command prompt:
ant allIn this sample's
clientdirectory, theantallcommand executes the APDU script that generates thesecurermidemo.expected.outfile.
Verify that the contents of the
securermidemo.expected.outfile in theclientdirectory are the same as the contents of thesecurermidemo.expected.outfile in theSecureRMIPursedirectory.

