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
\bin
directory.Start the RI by using the following command at the command prompt:
cref -o demoee
Starting the RI with the
-o
option causes the RI to save the EEPROM contents to a file nameddemoee
. See Using the Reference Implementation for more information about usingcref
and its command line options.Open a second Command Prompt window and perform the following:
Navigate to the JC_CLASSIC_HOME
\samples\classic_applets\SecureRMIPurse\applet
directory.Enter the following command at the command prompt:
ant all
In this sample's
applet
directory, theant
all
command executes the APDU script and installs the secure RMI application.
In the
cref
Command Prompt window, restart the RI by using the following command:cref -i demoee
In the applet Command Prompt window, perform the following:
Navigate to the JC_CLASSIC_HOME
\samples\classic_applets\SecureRMIPurse\client
directory.Enter the following command at the command prompt:
ant all
In this sample's
client
directory, theant
all
command executes the APDU script that generates thesecurermidemo.expected.out
file.
Verify that the contents of the
securermidemo.expected.out
file in theclient
directory are the same as the contents of thesecure
rmidemo.expected.out
file in theSecureRMIPurse
directory.