Java Card 3 Platform Development Kit User Guide, Classic Edition
Running the Utility Sample in Eclipse
We will run this sample using Run Configuration and the APDU console in Eclipse.
Start Eclipse. Sample_Platform and Sample_Device must already be created.
- Import the
Utility
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.
- Click OK.
- In the top menu, select Run and Run Configurations...
- In the Run Configurations dialog:
- Right-click on Java Card Project Run and select New.
- In the Name field, enter Utility
- Click Browse..., select the Utility project, and click OK.
- Select Start simulator.
- In the Scripts to be executed on simulator list box, add the following scripts:
Browse to the JC_CLASSIC_HOME\samples\classic_applets\Utility\applet\apdu-scripts
directory and choose cap-com.sun.jcclassic.samples.utility.script
From the same directory, select UtilityDemoFooter.scr
- Click Run
The simulator starts and executes the scripts in the list box, and you can see the output in the
Sample_Device Console view.
Compare the output with the contents of the utility.expected.out
file.
Table of Contents
Java Card: 3 Platform Development Kit User Guide, Classic Edition
Expand |
Collapse