How can I load code on a card?
Once you have converted the applet, you need to load the CAP file on the card. This means chopping the CAP file and send it as an APDU sequence to the on-card installer. Remember: the maximum amount of data than an APDU may hold is 255 bytes, so chances are your CAP file wont fit!
The nature of the APDU commands depends on the installer. The Java Card Runtime Environment Specification says very little about installation. What this means to you is that the installer that is part of your JCRE certainly uses proprietary commands.