Start Eclipse. Sample_Platform and Sample_Device must already be created.
- Import the
JavaPurse
project into your workspace.
If the build doesn't start automatically, start it manually.
- Select the
JavaPurse
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 JavaPurse 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.javapurse.script
-
jp.scr
- Click Apply and OK to close the Edit Configuration window.
- Click OK to close the Properties window.
- In 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 javapurse.expected.output
file.