- Development Kit User Guide
- Setup, Samples and Tools
- Running the Samples
- Running the classic_applets Samples
- ObjectDeletion Sample
- Running the ObjectDeletion Sample in Eclipse
Running the ObjectDeletion Sample in Eclipse
Run the ObjectDeletion sample without the APDU console.
Start Eclipse. Sample_Platform and Sample_Device must already be created.
- Import the
ObjectDeletionJava Card project into your workspace. If the build doesn't start automatically, start it manually.The build creates
apdu_scriptsanddeliverablesdirectories. - In Java Card View, double-click on Sample_Device. In the Properties for Sample_Device dialog, select the CREF tab:
- In the Combined (input and output) file for EEPROM data field, type a file name to be used for saving EEPROM between simulator sessions, e.g., ObjectDeletion.eeprom. The file will be automatically created in the bin directory. Later, after the sample run, you can safely delete it.
- Select the Do not open APDU console check box.
- Click OK.
- At the command line, browse to the
JC_HOME_SIMULATOR\samples\classic_applets\ObjectDeletion\appletfolder.- Set
ANT_HOME(path to ant install folder),JC_HOME_TOOLSandJC_HOME_SIMULATOR(path to JCDK install folder) as environment variables. - Build the
ObjectDeletionsample and runantin theJC_HOME_SIMULATOR\samples\classic_applets\ObjectDeletion\appletfolder.A
buildfolder is created with theapplet*.scrfiles. - In Eclipse, right-click on the ObjectDeletion project and click Refresh.
The
buildfolder is added into the project.
- Set
- Execute the following scripts in the same order from the
buildfolder.applet1-1.scrapplet1-2.scrapplet1-3.scrapplet2.scrapplet2-2.scrapplet3.scrapplet3-2.scr
- To run each script, start the simulator, from the Java Card View, right-click on Sample_Device and select Start.
- Right-click on the script file and select Java Card and Execute Script.
You see the simulator output in the Console view. The simulator stops after each script run. Compare the output in the Console view with the corresponding
expected.outfile. Compare the output in the Console view for each run of anapplet*.scrfile, with the correspondingod*.expected.outfile, located inthe JC_HOME_SIMULATOR\samples\classic_applets\ObjectDeletionfolder.