Page 1 of 1

Install cap-file generated by eclipse

Posted: Wed Dec 16, 2015 12:36 pm
by crash
Hi,
after no one could tell me
why i can´t register my JCIDE
i tried eclipse to generate my cap-file.
But, with GPShell i used my old script
to install the applet, i got this error

Code: Select all

6985: Command not allowed - Conditions of use not satisfied.

It´s the same code as i used in JCIDE.
Whats wrong with the eclipse-generated-cap-file?

Output GPShell:

Code: Select all

mode_201
enable_trace
enable_timer
establish_context
command time: 0 ms
card_connect
command time: 0 ms
select -AID A000000018434D00
Command --> 00A4040008A000000018434D00
Wrapped command --> 00A4040008A000000018434D00
Response <-- 9000
command time: 32 ms
open_sc -security 3 -keyind 0 -keyver 0 -key 47454d5850524553534f53414d504c45 -keyDerivation visa2 // Open secure channel
Command --> 80500000081F4BE6B35FB8CC4200
Wrapped command --> 80500000081F4BE6B35FB8CC4200
Response <-- 4D000012C0071F03201FFF0133FD28866CBB698A317A9A78FF062AFE9000
Command --> 84820300103FE82E7B4C7504D33C9094D22DBD8BFD
Wrapped command --> 84820300103FE82E7B4C7504D33C9094D22DBD8BFD
Response <-- 9000
command time: 218 ms
install -file MBsicService.cap -sdAID A000000018434D00 -nvCodeLimit 4000
Command --> 80E602001F0CD27600015901140001FFFFFF08A000000018434D000006EF04C6020FB00000
Wrapped command --> 84E6020028D2A788E166B52A36FC53D64B9A25598310C611011CA8CE846E27676BD8505BD6BCC620B97EB4645000
Response <-- 009000
Command --> 80E80000EFC482021F010023DECAFFED02020500010CD27600015901140001FFFFFF0C6D625369635365727669636502002100230021000D001500360018007A002C00180000008F031200080002001802010004001502060107A0000000620101000107A000000062000103000D0109D276000159011400010001060018000000800301000107010000001500810000FF000100000007007A0001308F00018C00077A0110188C0002188B00037A0422188B000460037A198B00052D198B0006321A032510C46A091A032510C86B38AD0003106638AD0004100E38AD00051A032538AD00060338AD0007101838198B00083B19AD
Wrapped command --> 84E80000F8311AAB192919B994CDC5AD70586333A0ABD5380E25EB788F8973377F42824B99A0C462DD6AAF51E9C2B4AE6BB2CBA6310442E1BEA4F8FFA6FE89A4F90D0958C42E75A669EA0A7FDA2A2755BD165564B536FEC55AABD6CA827363565FAFA8A39DEE7260B9D31AD346099BE8B789D5722F789B1ABD767AC52D2EE94BEE523BC2D3FA63FDD812F07124651615897DE4FD252F6F59B72993899F9BDB03C48EC9B4E05093257B88EC209855D7620D5EB8CE916AB76EF6E8E3E563A0A382DAA5027BB1C1CAFB72C555B7E4361BD1BD2E74FD2F2B9357B37AF9C073048D52250310599921272C34365A63DA55EBC3559236F9712B2A030989A91002
Response <-- 6985
load() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)


I also tried to install a complete new Applet but don´t worked.

Thanks for help :D

Re: Install cap-file generated by eclipse

Posted: Wed Dec 16, 2015 9:50 pm
by UNKNwYSHSA
The CAP version is 2.2, what is the JC API version of your card?

Re: Install cap-file generated by eclipse

Posted: Thu Dec 17, 2015 4:36 am
by crash
Where can i get the JC Version?

EDIT:
I followed this steps:
http://stackoverflow.com/questions/29307756/eclipse-generated-cap-file-cannot-be-installed-on-javacard
but don´t work, the only think i did not get is change the JC-Version
how to do that? Where is it stored?
In this thread they say change it hard on disk
but i can´t find the folder where it is stored.
http://stackoverflow.com/questions/29135545/java-card-2-2-1-application-with-eclipse

Re: Install cap-file generated by eclipse

Posted: Thu Dec 17, 2015 11:56 am
by UNKNwYSHSA
crash wrote:Where can i get the JC Version?

EDIT:
I followed this steps:
http://stackoverflow.com/questions/29307756/eclipse-generated-cap-file-cannot-be-installed-on-javacard
but don´t work, the only think i did not get is change the JC-Version
how to do that? Where is it stored?
In this thread they say change it hard on disk
but i can´t find the folder where it is stored.
http://stackoverflow.com/questions/29135545/java-card-2-2-1-application-with-eclipse

When you use JCOP eclipse to create JavaCard project, you can set JC version in the wizard dialog. I don't know how to change it when the project have already created.
You can build one CAP use JCIDE, set JC version to 2.1. And try to load it to your card.
You can get your card JC version use JC API JCSystem.getVersion().