JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Sharing object between different applet...
Moderator: product
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Sharing object between different applet...
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;
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
-
- Posts: 24
- Joined: Thu Apr 07, 2016 12:14 pm
- Points :457
- Contact:
Re: Sharing object between different applet...
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?
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Re: Sharing object between different applet...
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".
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
-
- Posts: 24
- Joined: Thu Apr 07, 2016 12:14 pm
- Points :457
- Contact:
Re: Sharing object between different applet...
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.
- UNKNwYSHSA
- Posts: 630
- Joined: Thu May 21, 2015 4:05 am
- Points :3055
- Contact:
Who is online
Users browsing this forum: No registered users and 23 guests