×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    3

    Newbie questions on JavaCard application programming

    Hi !

    I am currently developping a pretty simple application which read a RFID tag then store its UID in a file on the phone. This is supposed to be some kind of a user ID which will last until the file is either deleted or changed by the user. For the moment it's a simple midlet that does everything. My programming background being more J2EE than J2ME, I used that to learn how to program on a phone. But now, I find it a bit too simple and would like to know more about developping the same kind of application but by installing it on the java card of my 6131 nfc and storing the uid into the MiFare 4K. Howerver, I haven't found a lot of tutorials that explain how this card works, so here I am with my questions.

    First, what exactly is a javacard ? I have read some documentations but it's still quite blurry to me. And what are the differences between programming a normal midlet and a javacard applet (I mean, what class do you extend instead of javax.microedition.midlet.MIDlet)? And is this javacard applet also in J2ME or in normal java (J2SE or EE)?

    I am working with eclipseME and I haven't found a way to specify that my application isn't a midlet but an applet, so can you tell me how to do it ? And also how to deploy this application directly into the smartcard using the nokia PC suite ?

    That's all I can think about for now (and i think that's all I need to start working properly).

    So if anyone could help me a bit on this, it would be really great !

    Thanks in advance and sorry for the probably stupid questions,

    Yann

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Newbie questions on JavaCard application programming

    Hello Yann,

    to get started, here's information on Java Card Technology:

    http://en.wikipedia.org/wiki/Java_Card

    http://java.sun.com/javacard/

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Newbie questions on JavaCard application programming

    Moved to NFC forum.

    Hartti

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

    Re: Newbie questions on JavaCard application programming

    What is javacard? well it's an OS for a Smarcard, that allows you to develop Applet in Java and upload them onto the card. the Card Management itself usually is performed using the GlobalPlatform Framework.

    Difference Applet (Javacard) vs. Midlet (J2ME): The J2ME runs on the handset and can use all the features of a handset (display, keyboard, GRPS ...). The Applet only can be access thru APDUS (ISO 7816) or RMI. Usually you would run only secure application (like payment) in the secure element, as mememory is very tight (72 KB). Programming JavaCard requires a different SDK.

    In order to develop JCOP applications you either do require JCOP Tools (from NXP), G&D Smartcard (the secure CHip in the Nokia 6131 is from G&D), Sun's Java Cardtool Kit, a Dev. Kit from Gemalto or other. I'm acutally using JCOP Tools as it can be installed as a plugin into eclipse. Unfortunaly as the development of this tool moved from IBM to NXP I'm not sure if you can obtain this product at the moment.

Similar Threads

  1. newbie, some basic questions about mobile application development
    By p_sudheers in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-04, 21:49
  2. newbie problem in showing an application icon
    By flicker82 in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-07-19, 02:02
  3. newbie question: how to start a new application inside an application
    By qianghstc in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-07-07, 23:55
  4. Questions about Nokia 30 - Programming II
    By Nokia_Archived in forum Nokia M2M
    Replies: 1
    Last Post: 2002-05-20, 17:58
  5. Replies: 1
    Last Post: 2002-05-13, 16:48

Posting Permissions

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