I'm new to Java Card programming and I'm having some problems getting started. I'm using Eclipse with EclipseJCDE. I made a simple java card applet and used EclipseJCDE's tools to create a .cap file and install it on the simulator. I don't know if installing it on the simulator was successful or not because the download script is a bunch of ADPU commands which I don't understand. Is there any way to see what applets are currently on the simulator and what their AIDs are?
I then made a script for ADPUtool with just one command, selecting the applet. According to the .jca file in my project the AID for my applet is 0x1:0x2:0x3:0x4:0x5:0x6:0x7:0x8:0x9:0x0:0x0. This is the command I made for selecting the applet:
0x00 0xA4 0x04 0x00 0x0b 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0x0 0x0;
The 0x00 0xA4 0x04 0x00 at the beginning is for the select comand, then 0x0b for the length, than the AID, and then 0x0 at the end for the Le byte which I don't think matters for this command. When I run this script with the ADPU tool I get this:
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 0b, 01, 02, 03, 04, 05, 06, 07, 08, 09, 00, 00, Le: 00, SW1: 6d, SW2: 00
I believe the SW1 and SW2 bytes are the response to my command and I think 6d means it didn't find or wasn't able to load the applet. What am I doing wrong?