Running the JavaPurse Sample in Eclipse
Start Eclipse. Sample_Platform and Sample_Device must already be created.
- Import the
JavaPurseproject into your workspace.If the build doesn't start automatically, start it manually. - Select the
JavaPurseproject, 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.scriptcap-com.sun.jcclassic.samples.javaloyalty.scriptcap-com.sun.jcclassic.samples.javapurse.scriptjp.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
JavaPursethen click Run.Compare the console output with the content ofjavapurse.expected.outputfile.

