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.

Implement a simple JavaCard API

JavaCard Applet Development Related Questions and Answers.
nikonai
Posts: 17
Joined: Mon Feb 22, 2016 4:37 am
Points :177
Contact:

Implement a simple JavaCard API

Post by nikonai » Thu Jun 15, 2017 1:59 am

I have to write a simple JCVM in C language,but I am experiencing a problem. Such as method invoke,if I invoke a method in a package,the byte-code is in the cap file. But if it is in JavaCard API like apdu.getbuffer(),how can I implement it? I just need to implement a simple version of JavaCard API, please help.

User avatar
btwtiger
Posts: 28
Joined: Wed Jun 10, 2015 7:22 am
Points :134
Contact:

Re: Implement a simple JavaCard API

Post by btwtiger » Thu Jun 15, 2017 11:26 pm

1. Change your applet build process to intercept the generated classes before JAVA CARD bytecode conversion, and make a jar;
2. Dynamically load this jar in a driver program;
3. Using reflection , call the entry point "install()" in the loaded class - this will call the applet constructor and try to call back register() - you will have to implement this API and others.
Onward...

nikonai
Posts: 17
Joined: Mon Feb 22, 2016 4:37 am
Points :177
Contact:

Re: Implement a simple JavaCard API

Post by nikonai » Fri Jun 16, 2017 5:54 am

Thank you for your help. Now I am confused about a basic question.
Does the java card API stored in a card in cap file form?

User avatar
btwtiger
Posts: 28
Joined: Wed Jun 10, 2015 7:22 am
Points :134
Contact:

Re: Implement a simple JavaCard API

Post by btwtiger » Fri Jun 16, 2017 6:15 am

It is up to your implementation.
Onward...

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 54 guests

JavaCard OS : Disclaimer