Start Eclipse. Sample_Platform and Sample_Device must already be created.
- Import the
JavaPurseCrypto
project into your workspace.
If the build doesn't start automatically, start it manually.
- Select the
JavaPurseCrypto
project, press Alt+Enter, select Run/Debug Settings, and click New. In the Select Configuration Type window select Java Card Project Run and click OK.
- In the Edit Configuration window do the following:
- Enter JavaPurseCrypto in the Name field
- Select the Start simulator checkbox
- Add the following scripts to the listbox:
-
cap-com.sun.jcclassic.samples.samplelibrary.script
-
cap-com.sun.jcclassic.samples.javaloyalty.script
-
cap-com.sun.jcclassic.samples.javapursecrypto.script
-
jpcrypto.scr
- Click Apply and OK to close the Edit Configuration window.
- Click OK to close the Properties window.
- In the Java Card View, double-click Sample_Device. In the Properties for Sample_Device dialog, select the CREF tab:
- Select Do not open APDU console.
- Click OK.
- Select Run and Run Configurations. Select
JavaPurse
then click Run.
Compare the console output with the content of javapursecrypto.expected.output
file.