Running the JavaPurse Sample in Eclipse

Start Eclipse. Sample_Platform and Sample_Device must already be created.
  1. Import the JavaPurse project into your workspace.
    If the build doesn't start automatically, start it manually.
  2. 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.
  3. In the Edit Configuration window do the following:
    1. Enter JavaPurse in the Name field
    2. Select the Start simulator checkbox
    3. 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

    4. Click Apply and OK to close the Edit Configuration window.
    5. Click OK to close the Properties window.
  4. In Java Card View, double-click Sample_Device. In the Properties for Sample_Device dialog, select the CREF tab:
    1. Select Do not open APDU console.
    2. Click OK.
  5. Select Run and Run Configurations. Select JavaPurse then click Run.
    Compare the console output with the content of javapurse.expected.output file.