Running the RMIPurse Sample from the Command Line
To run the RMIPurse sample:
-
Open a Command Prompt window and perform the following:
-
Navigate to the
JC_HOME_SIMULATOR\bindirectory. -
Start the simulator by typing the following command at the command prompt:
cref -o demoee
Starting the simulator with the
-ooption and filename causes the simulator to save the EEPROM contents to a file nameddemoee. -
-
Open a second Command Prompt window and 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\RMIPurse\appletdirectory. -
Enter the following command at the command prompt:
ant all
In this sample's
appletdirectory, theantallcommand executes the APDU script and installs the RMI application. -
-
In the
crefCommand Prompt window, restart the simulator by using the following command:cref -i demoeeStarting the simulator with the
-ioption and filename causes the simulator to use the contents of thedemoeefile to initialize the EEPROM. -
In the applet Command Prompt window, perform the following:
-
Navigate to the
JC_HOME_SIMULATOR\samples\classic_applets\RMIPurse\clientdirectory. -
Enter the following command at the command prompt:
ant allIn this sample's
clientdirectory, theantallcommand executes the APDU script and generates thermidemo.actual.outputfile.
-
-
Verify that the contents of the
rmidemo.actual.outputfile in theclientdirectory are the same as the contents of thermidemo.expected.outputfile in theRMIPursedirectory.