These instructions use clipboard operations and the APDU console to run the script. You could instead run the script in the usual way (right-click the script, select Java Card and Execute Script).
Start Eclipse. Sample_Platform and Sample_Device must already be created.
Import the Wallet Java Card project into your workspace. If the build doesn't start automatically, start it manually.
The build creates apdu_scripts and deliverables directories.
In Java Card View, double-click on Sample_Device. In the Properties for Sample_Device dialog, select the CREF tab:
Clear the Input file with EEPROM data, the Output file for EEPROM data, and the Combined (input and output) file for EEPROM data fields.
Clear Do not open APDU console.
In Java Card View, right-click on Sample_Device and select Start.
The simulator starts and you can see the output in the Sample_Device console view. The output ends and the CMD> prompt is displayed.
In the console toolbar, click on the Select script drop-down button and select cap-com.sun.jcclassic.samples.wallet from the list.
The script is submitted to the simulator and you can see the output.
In Package Explorer, expand the apdu_scripts folder and double-click on wallet.scr to open it in the editor view. Select all text in the editor view, copy it to the clipboard, and paste it into the Sample_Device console.
The script is executed by the simulator, and you see the output in the Sample_Device console.
Compare the output with the contents of the wallet.expected.out file.