GP API implementation in cref
843851Aug 22 2008 — edited May 3 2009Hi All,
Iam new to java card development, iam using javacardkit2.2 and jdk2.0 for my javacard
development.Currently i am developing Global Platform API simulator. The simulator is basically CREF
and it is masked with Glopal Platform API's.Now the actual problem is my java applet code contains
implementation of Global Platform API's(package: org.globalplatform.CVM ), but when i am loading cap file in to simulator after
it is compiled and converted succesfully,i am getting status word SW1:64 and SW:38 for my import.cap block,
since it is failing ,the consecutive blocks are getting failed. I have read in Java card user_guide that the error is due to Package not found. Iam not able to rectify this error.
Please do help me on this.
Iam pasting my apduout file below:
CLA: 80, INS: e6, P1: 02, P2: 00, Lc: 0e, 09, 01, 02, 03, 04, 05, 06, 07, 08, 09, 00, 00, 00, 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b0, P1: 00, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b2, P1: 01, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b4, P1: 01, P2: 00, Lc: 16, 01, 00, 13, de, ca, ff, ed, 01, 02, 04, 00, 01, 09, 01, 02, 03, 04, 05, 06, 07, 08, 09, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: bc, P1: 01, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b2, P1: 02, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b4, P1: 02, P2: 00, Lc: 20, 02, 00, 1f, 00, 13, 00, 1f, 00, 0e, 00, 1e, 00, 3a, 00, 0c, 01, 1e, 00, 0a, 00, 28, 00, 00, 00, 64, 00, 00, 00, 00, 00, 00, 03, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b4, P1: 02, P2: 00, Lc: 02, 01, 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: bc, P1: 02, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b2, P1: 04, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
CLA: 80, INS: b4, P1: 04, P2: 00, Lc: 20, 04, 00, 1e, 03, 03, 01, 07, a0, 00, 00, 00, 62, 01, 01, 01, 01, 06, a0, 00, 00, 01, 51, 00, 00, 01, 07, a0, 00, 00, 00, 62, 00, Le: 00, SW1: 64, SW2: 38
CLA: 80, INS: b4, P1: 04, P2: 00, Lc: 01, 01, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: bc, P1: 04, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: b2, P1: 03, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: b4, P1: 03, P2: 00, Lc: 11, 03, 00, 0e, 01, 0a, 01, 02, 03, 04, 05, 06, 07, 08, 09, 0a, 00, 08, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: bc, P1: 03, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: b2, P1: 06, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: b4, P1: 06, P2: 00, Lc: 0f, 06, 00, 0c, 00, 80, 03, 00, ff, 00, 07, 01, 00, 00, 00, 1c, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: bc, P1: 06, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
CLA: 80, INS: b2, P1: 07, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
Thanks in advance
vijay