To run the RMIPurse sample:
Open a Command Prompt window and perform the following:
Navigate to the JC_CLASSIC_HOME\bin
directory.
Start the RI by typing the following command at the command prompt:
cref -o demoee
Starting the RI with the -o
option and filename causes the RI to save the EEPROM contents to a file named demoee
. See Using the Reference Implementation for more information about using cref
and its command line options.
Open a second Command Prompt window and perform the following:
Navigate to the JC_CLASSIC_HOME\samples\classic_applets\RMIPurse\applet
directory.
Enter the following command at the command prompt:
ant all
In this sample's applet
directory, the ant
all
command executes the APDU script and installs the RMI application.
In the cref
Command Prompt window, restart the RI by using the following command:
cref -i demoee
Starting the RI with the -i
option and filename causes the RI to use the contents of the demoee
file to initialize the EEPROM.
In the applet Command Prompt window, perform the following:
Navigate to the JC_CLASSIC_HOME\samples\classic_applets\RMIPurse\client
directory.
Enter the following command at the command prompt:
ant all
In this sample's client
directory, the ant
all
command executes the APDU script and generates the rmidemo.actual.output
file.
Verify that the contents of the rmidemo.actual.output
file in the client
directory are the same as the contents of the rmidemo.expected.output
file in the RMIPurse
directory.