×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    5

    load java card applet using MIDlet

    Hi,

    I would like to learn how to load a java card applet using a MIDlet on Nokia 6131 NFC?

    I try to develop a mobile framework system which can extend its supported java card applets by downloading and installing the .cab file of the new applet from a server or any other workaround solutions?

    Thanks in advance

  2. #2
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: load java card applet using MIDlet

    hi,

    that's not to difficult. You just have to implemenat all the APDU Commands for loading the CAP file in your midlet. It's more or less a "copy-and-paste" szenario from the java-card shell commands (apdus).

    just load an app to your card. copy the apdus to the midlet code using llaaarrrrrggggeeeee bytes arrays and the use the exchangeAPDU to send them to the card. that's it.

    cheers, geri-m

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    5

    Re: load java card applet using MIDlet

    Thank you very much for your reply geri-m.
    However I use GPShell to load a java card applet to the phone, therefore, I don't know the actual APDU commands. Is there a way to generate that APDUs. Or that APDUs are the byte codes that are printed out to the console by the GPShell when it load the applet?

    And also do I need to copy the cap file to phone? Or that large APDUs will be enough to load the applet?

    Regards, Ismail.

  4. #4
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    Re: load java card applet using MIDlet

    hi ismail,

    well, I don't use gpshell, thus I can't says in detail. But I suppose, the bytes you see on the screen are the ADPUs to send to the card.

    YOu don't need the cap file on the phone, as the apdus already are the information for loading the cap to the smartcard chip.

    Sirett et al. descibe that way in one of their publication "Design, Installation \& Execution of a Security Agent for Mobile Stations"

    cheers, geri-m

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    5

    Re: load java card applet using MIDlet

    Thank you very much geri-m,
    If this is the case I can find out the rest. Everything is clear in my mind now. Thanks again for your quick help.

    Regards,
    Ismail.

  6. #6
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    113

    Re: load java card applet using MIDlet

    Hm... Wouldn't it be cool if someone built a small midlet which you could just compile and install and it would send the necessary APDUs? You could just put the cap file in a particular directory when compiling, and it would be automatically be included as a resource, and then you could just get a link to it via Class.getResourceAsStream()...

    *wink, wink, nudge, nudge*

Similar Threads

  1. Replies: 1
    Last Post: 2008-05-07, 13:51
  2. Access Point Pop-up with Java midlet on S60 3.1
    By athakur in forum Mobile Java General
    Replies: 1
    Last Post: 2008-03-10, 23:59
  3. Deploying Java Card Applet into Secure Element
    By lovercjs in forum Near Field Communication
    Replies: 0
    Last Post: 2007-07-23, 07:22
  4. Problem MMC+USB Connection
    By Fede81 in forum General Development Questions
    Replies: 3
    Last Post: 2006-07-19, 15:21
  5. Building Java Midlet Sucessful Storry
    By dpenezic in forum Mobile Java General
    Replies: 0
    Last Post: 2006-02-15, 11:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×