Posted By:
Richard_Sinclair
Posted On:
Wednesday, March 5, 2003 02:45 AM
I am having trouble testing the HelloWorld applet. I am using a .app file for jcwde with contents of: com.sun.javacard.installer.InstallerApplet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0x8:0x1 HelloWorld.HelloWorld 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2:0x1 ---------------------------------------------------------- and then running the following script using apdutool... powerup; //Select the installer applett 0x00 0xA4 0x04 0x00 0x09 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0x8 0x1 0x7F; //Initialize installation 0x80 0xB0 0x00 0x00 0x00 0x7F; //create HelloWorld 0x80 0xB8 0x00 0x00 0x0A 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x2 0x1 0x7F; //End installa
More>>
I am having trouble testing the HelloWorld applet.
I am using a .app file for jcwde with contents of:
com.sun.javacard.installer.InstallerApplet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0x8:0x1
HelloWorld.HelloWorld
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x2:0x1
----------------------------------------------------------
and then running the following script using apdutool...
powerup;
//Select the installer applett
0x00 0xA4 0x04 0x00 0x09 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0x8 0x1 0x7F;
//Initialize installation
0x80 0xB0 0x00 0x00 0x00 0x7F;
//create HelloWorld
0x80 0xB8 0x00 0x00 0x0A 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x2 0x1 0x7F;
//End installation
0x80 0xBA 0x00 0x00 0x00 0x7F;
-------------------------------------------------------------
with the results:
Opening connection to localhost on port 9025.
Connected.
Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 09, a0, 00, 00, 00, 62, 03, 01, 08, 01, 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: b8, P1: 00, P2: 00, Lc: 0a, a0, 00, 00, 00, 62, 03, 01, 0c, 02, 01, Le: 00, SW1: 64, SW2: 43
CLA: 80, INS: ba, P1: 00, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
powerdown;
-----------------------------------------------------------
Which I think shows me that the applet cannot be found. But I can't think of a reason it cannot be found as the applet resides in the classpath ... something wrong with my .app file or applet RID? Please help!!!
<<Less