Duplicate applet AID found error while using apdutool
843851May 13 2002 — edited May 21 2002Hi everyone,
I have written an application using java card. It works well with jcwde. When I use the c-ref along with apdutool, I am getting "Duplicate Applet AID found" error. My .opt file is as follows:
-out CAP JCA EXP
-exportpath c:\javapps\java_card_kit-2_1_2\api21_export_files
-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1 myPack.Echo
myPack
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
The .scr file is as follows:
powerup;
// Select the installer applet
0x00 0xA4 0x04 0x00 0x09 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x08 0x01 0x7F;
// begin installer command
0x80 0xB0 0x00 0x00 0x00 0x7F;
// create echo applet
0x80 0xB8 0x00 0x00 0x0b 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x1 0x1 0x7F;
// end installer command
0x80 0xBA 0x00 0x00 0x00 0x7F;
// select Echo
//0x00 0xa4 0x04 0x00 0x0a 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x0c 0x01 0x01 0x7F;
powerdown;
Can you suggest why is there a duplicate applet ? I have been trying out different ways but it gives me the same error. I think I am missing something. I would really appreciate any suggestions.
Thanks in advance