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.

Sharing object between different applet...

Applets Development Guide

Moderator: product

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Sharing object between different applet...

Post by UNKNwYSHSA » Thu Nov 17, 2016 5:47 am

The EXP file is not needed.
Only add the interface file to your project.
I tested, all OK.
My package view like this:

Note:
1 In new project, the AID of interface package shall be same as server package;
2 Load server CAP file before load client CAP;
You do not have the required permissions to view the files attached to this post. Please login first.
sense and simplicity

mhsnmaghsoodloo
Posts: 24
Joined: Thu Apr 07, 2016 12:14 pm
Points :457
Contact:

Re: Sharing object between different applet...

Post by mhsnmaghsoodloo » Sat Nov 19, 2016 11:27 am

UNKNwYSHSA wrote:The EXP file is not needed.
Only add the interface file to your project.
I tested, all OK.
My package view like this:

Note:
1 In new project, the AID of interface package shall be same as server package;
2 Load server CAP file before load client CAP;


Thanks a lot, firstly i should appology because i couldn't work on my project yesterday. I use netbeans and ant for compiling and converting and verfying my applet. there is a difference between Netbeans and JCIDE. The cap file is generated by Netbeans has 13Kb size but the cap file is created by JCIDE has 25Kb size and 25Kb is not acceptable. why this would happen?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Sharing object between different applet...

Post by UNKNwYSHSA » Sun Nov 20, 2016 9:34 pm

Can you show me the components of the CAP?
Open Cap file with zip program (I use 7zip), like this:


I think the debug component causes the different of CAP file size generated by NetBeans and JCIDE.
You can disable debug component in JCIDE project settings and generate CAP again. Operate with following:
Project -> Right Click -> Properties -> Local JCKit Configuration -> -debug -> switch to false -> OK button.
And "Build All".
You do not have the required permissions to view the files attached to this post. Please login first.
sense and simplicity

mhsnmaghsoodloo
Posts: 24
Joined: Thu Apr 07, 2016 12:14 pm
Points :457
Contact:

Re: Sharing object between different applet...

Post by mhsnmaghsoodloo » Mon Nov 21, 2016 4:33 am

UNKNwYSHSA wrote:Can you show me the components of the CAP?
Open Cap file with zip program (I use 7zip), like this:


I think the debug component causes the different of CAP file size generated by NetBeans and JCIDE.
You can disable debug component in JCIDE project settings and generate CAP again. Operate with following:
Project -> Right Click -> Properties -> Local JCKit Configuration -> -debug -> switch to false -> OK button.
And "Build All".

Thank you very much.
You are right and i compiled my project in debug mod. When i changed the configuration to false, the cap size cut down equal to Netbeans.
Thank you again.

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Sharing object between different applet...

Post by UNKNwYSHSA » Mon Nov 21, 2016 4:47 am

:D
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 12 guests

JavaCard OS : Disclaimer