Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

How to call call the process() method in another applet

JavaCard Applet Development Related Questions and Answers.
Rasiand
Posts: 12
Joined: Mon Mar 14, 2016 8:25 am
Points :133
Contact:

How to call call the process() method in another applet

Post by Rasiand » Mon Mar 14, 2016 8:38 am

Hello, I am newbie in java card field. I have tried to write an applet which need to call the process() method in another applet. How can I implement this? It would be better if you give me a sample code. Pls forgive me if my question is stupid.

gorgekin
Posts: 20
Joined: Sun Nov 29, 2015 4:38 am
Points :83
Contact:

Re: How to call call the process() method in another applet

Post by gorgekin » Sat Mar 19, 2016 2:22 am

See the sample code:
Target applet

Code: Select all

class TargetApplet {
  public static Applet INSTANCE;

  private TargetApplet() {
  }

  public static void install() {
    INSTANCE = new TargetApplet();
    INSTANCE.register();
  }
}


Client applet:

Code: Select all

TargetApplet.INSTANCE.process();

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 70 guests

JavaCard OS : Disclaimer