Documentation



Java Card 3 Platform Development Kit User Guide, Classic Edition

Running the HelloWorld Sample in Eclipse

We will run the HelloWorld sample using the APDU console.

Start Eclipse. Sample_Platform and Sample_Device must already be created.
  1. Using the File menu, select Import and General to import the HelloWorld Java Card project into your workspace. If the build doesn't start automatically, start it manually.
    The build generates the scripts and puts them in the apdu_scripts directory. It puts the outputs from the converter (cap, jca, and exp files) in the deliverables directory.
  2. If you don't see the Java Card view, go to the Window menu, select Show View and Other... In the list, expand Oracle Java Card SDK and select Java Card view.
  3. In the Java Card View, right-click on Sample_Device and select Start.
    The simulator starts and you can see the output in the Console view.
  4. In the Sample_Device console toolbar, click on the Select script drop-down and execute these scripts:
    • cap-com.sun.jcclassic.samples.helloworld
    • create-com.sun.jcclassic.samples.helloworld.HelloWorld
    • helloworld
    The scripts are submitted to the simulator and you can see the output.
Compare the output in the Console view with the contents of the HelloWorld.expected.output file.
Close Window

Table of Contents

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

Expand | Collapse