This discussion is archived
1 Reply Latest reply: Mar 19, 2013 8:46 PM by safarmer RSS

Testing java card applet

997149 Newbie
Currently Being Moderated
Hi all,

Am new to java card applet development. I have developed a sample applet. But i don't know how to test it. So can anyone help me understand this.

please help.

Thanks
  • 1. Re: Testing java card applet
    safarmer Expert
    Currently Being Moderated
    Hi,

    To test your application you need to install it on a Java Card virtual machine. This can either be on a real smartcard or in an emulator (such as the ones in the JCDK). When you have it installed you can then send APDU commands to exercise the applet. From memory, there is an example of how to use the CREF simulator in the JCDK Developer Guide that is a part of the package.

    If you have a real card, you can use something like GPShell to load and install your applet and to send commands to it. I have also found it is useful to have a host application written in Java (using jUnit) to test specific commands.

    - Shane

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points