Documentation



Java Card 3 Platform Development Kit User Guide, Classic Edition

Running the JavaPurseCrypto Sample in Eclipse

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

      • jpcrypto.scr

    4. Click Apply and OK to close the Edit Configuration window.
    5. Click OK to close the Properties window.
  4. In the 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 javapursecrypto.expected.output file.
Close Window

Table of Contents

Java Card: 3 Platform Development Kit User Guide, Classic Edition

Expand | Collapse