How to Run the Samples
JC_HOME_SIMULATOR/samples/client.config.properties needs
to be configured accordingly. For example, lines like these:
A000000151000000_scp03enc_10=<Enter your 32-bit enc key here>
A000000151000000_scp03mac_10=<Enter your 32-bit mac key here>
A000000151000000_scp03dek_10=<Enter your 32-bit dek key here>
must be changed to something like
this:A000000151000000_scp03enc_10=1111111111111111111111111111111111111111111111111111111111111111
A000000151000000_scp03mac_10=2222222222222222222222222222222222222222222222222222222222222222
A000000151000000_scp03dek_10=3333333333333333333333333333333333333333333333333333333333333333
For additional information on configuring these properties, refer to Configuring the Java Card Development Kit Simulator.
Each sample directory contains an applet folder and a
client folder. You can use the Eclipse Plug-in or the script files
(build.bat / run.bat for Windows,
build.sh / run.sh for Linux) to be used from the
command line to build and run the samples. In either case, the outcome is the same: The
development kit tools are used to convert and verify the class files.
The Java Card runtime environment, jcsw.exe (on Windows),
jcsl (on Linux) respectively, simulates a Java Card 3.2 platform on
a smart card. Applets are installed into the runtime environment, and it simulates
interaction with a card reader.
To build and run the samples, refer to Running the Samples in Eclipse.