The Transit sample consists of two projects: a Java Card project with the Java Card applet and a Java SE project with the Java application that is designed to communicate with the applet.
Transit_Applet
Java Card project and Transit_Client
Java project into your workspace.
Transit_Applet
project build creates apdu_scripts
and deliverables
directories.TransitCard.eeprom
. The file will be automatically created in the bin
directory. Later, after the sample run, you can safely delete it.Sample_Device
and select Start.
cap-com.sun.jcclassic.samples.transit
.
TransitDemoFooter_notransitkey
script.
run1
Transit_Client
project, select Properties, select Run/Debug Settings, and click New.com.sun.jcclassic.clients.transit.POSTerminal
-k FFFFFFFFFFFFFFFF -- VERIFY 12345 CREDIT 99 GET_BALANCE
run2
com.com.sun.jcclassic.clients.transit.TransitTerminal
-k FFFFFFFFFFFFFFFF -- PROCESS_ENTRY 999
run3
com.sun.jcclassic.clients.transit.TransitTerminal
-k FFFFFFFFFFFFFFFF -- PROCESS_EXIT 10
run4
com.sun.jcclassic.clients.transit.POSTerminal
-k FFFFFFFFFFFFFFFF -- VERIFY 12345 GET_BALANCE
Java Application
entry if necessary, select run1, and then click Run.TransitClient_1.expected.output
file.
TransitClient_1.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40
TransitClient_2.expected.output
file.
TransitClient_2.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40
TransitClient_3.expected.output
file.
TransitClient_3.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40
TransitClient_4.expected.output
file.
TransitClient_4.expected.output
file for the following instructions:
CLA:80 INS:30
CLA:80 INS:40