Christmas is coming!

To celebrate the new year and thank for the support from all our dear customers, Christmas promotional activity is being held in JavaCardOS online store.

During the event, you can enjoy many promotional activities - High Discount on JavaCardOS products,Lucky Draw,Double forum Points.

Come to choose your own Christmas gift and try your luck now!

Run Hello World -Java Card JC10M128C

JCIDE related questions and answers.

Moderators: product, kuafu

benys
Posts: 4
Joined: Fri Dec 29, 2017 3:51 am
Points: 36
Contact:

Run Hello World -Java Card JC10M128C

Postby benys » Tue Jan 02, 2018 8:28 am

Hello,

I buy 'Java Card JC10M128C' cards and i want to run 'hello world'.

My steps:
1) I downloaded 'JCKit_JAVACOS_Beta_2.0.4.2 and I installed it
2) I created empty new project
3) I clicked run and it failed:

Code: Select all

Connect ACS ACR1281 1S Dual Reader ICC 0 successfully.
Disconnect apdu port with JCVM successfully
Connect ACS ACR1281 1S Dual Reader ICC 0 successfully.
>> /card -a ""
ATR=3B 90 95 80 11 FE 6A

>> 00 A4 04 00 00
<< 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 01 FF 90 00

>> set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F 255/2/DES-ECB/404142434445464748494A4B4C4D4E4F 255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
>> init-update 255
>> 80 50 00 00 08 E7 68 C6 C7 B2 67 92 AC 1C
<< 00 00 00 00 00 00 00 00 00 00 FF 02 00 0A FB 59 58 D6 62 71 E2 7B F4 BE 62 18 A6 E8 90 00
>> ext-auth
>> 80 50 00 00 08 D4 86 42 1C 36 B5 06 97 1C
<< 00 00 00 00 00 00 00 00 00 00 FF 02 00 0A FB 59 58 D6 62 71 0F 61 AA 5B BB 21 29 A2 90 00
>> 84 82 00 00 10 9D FF D9 16 D5 DE D1 51 CD D8 DA 19 3B CE 29 D8
<< 90 00
>> set-atr
set-atr set-atr: Missing mandatory argument: ATR
Example: set-atr 3B808031FE458A
Disconnect apdu port with JCVM successfully
Connect ACS ACR1281 1S Dual Reader ICC 0 successfully.
>> /card -a ""
ATR=3B 90 95 80 11 FE 6A

>> 00 A4 04 00 00
<< 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 01 FF 90 00

>> set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F 255/2/DES-ECB/404142434445464748494A4B4C4D4E4F 255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
>> init-update 255
>> 80 50 00 00 08 7C F1 47 69 2E 37 9F A4 1C
<< 00 00 00 00 00 00 00 00 00 00 FF 02 00 0B 1E A6 5F A8 6C E1 C8 13 58 8A A5 38 96 23 90 00
>> ext-auth
>> 80 50 00 00 08 C0 25 BE BB 3E FD 70 9E 1C
<< 00 00 00 00 00 00 00 00 00 00 FF 02 00 0B 1E A6 5F A8 6C E1 10 EF 1A 52 29 FF C9 50 90 00
>> 84 82 00 00 10 46 09 2F 3C 28 4E C4 49 E4 CF 76 67 0F 2B 06 41
<< 90 00
>> upload "C:\workspace\Test\Test\bin\Testowo\javacard\Testowo.cap"
>> 80 E6 02 00 12 05 11 22 33 44 55 08 A0 00 00 00 03 00 00 00 00 00 00 01
<< 69 85   Conditions of use not satisfied

Download cap failed...

>> cardinfo
>> 80 F2 80 00 02 4F 00 00
<< 08 A0 00 00 00 03 00 00 00 01 9E 90 00

>> 80 F2 40 00 02 4F 00 00
<< 6A 88   Referenced data or reference data not found

Card Manager AID   :  A000000003000000
Card Manager state :  OP_READY


Where is problem?

kuafu
Posts: 74
Joined: Thu Jun 25, 2015 2:09 am
Points: 925
Contact:

Re: Run Hello World -Java Card JC10M128C

Postby kuafu » Thu Jan 04, 2018 4:53 am

JCIDE didn't remove the CAP in the card, when it run. So the first time ,rum hello world successful. the next time fail, because ,the old cap has already in the card. So you need to remove the old cap,when you want to download a new cap.

JCIDE is used to build project ,and simulate the applet. And the pyApdutool is used to download cap, install applet to a card. So please build hello world with JCIDE. And remove or downlaod cap with pyapudutool.

benys
Posts: 4
Joined: Fri Dec 29, 2017 3:51 am
Points: 36
Contact:

Re: Run Hello World -Java Card JC10M128C

Postby benys » Thu Jan 04, 2018 7:12 am

Thank you. Its look it works :-).

benys
Posts: 4
Joined: Fri Dec 29, 2017 3:51 am
Points: 36
Contact:

Re: Run Hello World -Java Card JC10M128C

Postby benys » Thu Jan 04, 2018 7:52 am

One more think. I have empty card and now i try deploy "WalletDemoApplet". I got:

Code: Select all

>> set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F 255/2/DES-ECB/404142434445464748494A4B4C4D4E4F 255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
>> init-update 255
>> 80 50 00 00 08 9B FF 60 A3 24 C5 65 71 1C
<< 00 00 81 63 00 10 06 91 38 50 FF 02 00 46 DA 43 92 EF F6 12 70 A7 AC 77 3B EF 73 8E 90 00
>> ext-auth
>> 80 50 00 00 08 3B 31 06 A2 6D 72 9A 3D 1C
<< 00 00 81 63 00 10 06 91 38 50 FF 02 00 46 DA 43 92 EF F6 12 C5 0A 99 2C 69 1F 02 B1 90 00
>> 84 82 00 00 10 7D 87 BD CD 33 8F 4E 54 F3 47 31 09 D5 F7 A5 94
<< 90 00
>> upload "D:\JavaCardKit\SDK\Sample\GPSample\bin\GPSample\javacard\GPSample.cap"
>> 80 E6 02 00 17 0A D1 56 00 01 32 0A 64 65 6D 8F 08 A0 00 00 00 03 00 00 00 00 00 00 01
<< 00 90 00

>> 80 E8 00 00 FF C4 82 03 FF 01 00 1D DE CA FF ED 02 02 04 00 01 0A D1 56 00 01 32 0A 64 65 6D 8F 08 47 50 53 61 6D 70 6C 65 02 00 21 00 1D 00 21 00 0F 00 1E 00 72 00 20 02 80 00 0A 00 5D 00 00 01 12 07 C4 00 00 00 00 00 00 03 01 00 04 00 1E 03 03 01 07 A0 00 00 00 62 01 01 00 01 06 A0 00 00 01 51 00 00 01 07 A0 00 00 00 62 00 01 03 00 0F 01 0B D1 56 00 01 32 0A 64 65 6D 8F 01 00 49 06 00 20 00 00 00 80 03 04 00 02 04 04 00 06 00 69 FF FF 00 57 00 73 00 E4 01 48 01 61 01 A1 01 D1 02 3F 07 02 80 00 04 42 18 8C 00 1A 19 1E 25 29 04 19 1E 04 41 16 04 41 04 41 25 29 05 16 05 05 6A 08 11 69 84 8D 00 0A 18 10 11 8D 00 18 87 00 AD 00 01 94 00 00 04 69 0C 10 6A 10 88 8D 00 05 8D 00 0A 18 19 1E 04 41 16 04 8B 00 06 7A 05 30 8F 00 07 3D 18 1D 1E 8C 00 08 3B 7A 02 10 18 8D 00 09 87 01
<< 6A 80   Incorrect parameters in the command data field

Download cap failed...

>> cardinfo
>> 80 F2 80 00 02 4F 00 00
<< 08 A0 00 00 00 03 00 00 00 01 9E 90 00

>> 80 F2 40 00 02 4F 00 00
<< 6A 88   Referenced data or reference data not found

Card Manager AID   :  A000000003000000
Card Manager state :  OP_READY



What I have to check? (It works on JCIOM/128C but not in JCO/0/19 v2.3.1)

kuafu
Posts: 74
Joined: Thu Jun 25, 2015 2:09 am
Points: 925
Contact:

Re: Run Hello World -Java Card JC10M128C

Postby kuafu » Thu Jan 04, 2018 8:50 am

benys wrote:One more think. I have empty card and now i try deploy "WalletDemoApplet". I got:

Code: Select all

>> set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F 255/2/DES-ECB/404142434445464748494A4B4C4D4E4F 255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
>> init-update 255
>> 80 50 00 00 08 9B FF 60 A3 24 C5 65 71 1C
<< 00 00 81 63 00 10 06 91 38 50 FF 02 00 46 DA 43 92 EF F6 12 70 A7 AC 77 3B EF 73 8E 90 00
>> ext-auth
>> 80 50 00 00 08 3B 31 06 A2 6D 72 9A 3D 1C
<< 00 00 81 63 00 10 06 91 38 50 FF 02 00 46 DA 43 92 EF F6 12 C5 0A 99 2C 69 1F 02 B1 90 00
>> 84 82 00 00 10 7D 87 BD CD 33 8F 4E 54 F3 47 31 09 D5 F7 A5 94
<< 90 00
>> upload "D:\JavaCardKit\SDK\Sample\GPSample\bin\GPSample\javacard\GPSample.cap"
>> 80 E6 02 00 17 0A D1 56 00 01 32 0A 64 65 6D 8F 08 A0 00 00 00 03 00 00 00 00 00 00 01
<< 00 90 00

>> 80 E8 00 00 FF C4 82 03 FF 01 00 1D DE CA FF ED 02 02 04 00 01 0A D1 56 00 01 32 0A 64 65 6D 8F 08 47 50 53 61 6D 70 6C 65 02 00 21 00 1D 00 21 00 0F 00 1E 00 72 00 20 02 80 00 0A 00 5D 00 00 01 12 07 C4 00 00 00 00 00 00 03 01 00 04 00 1E 03 03 01 07 A0 00 00 00 62 01 01 00 01 06 A0 00 00 01 51 00 00 01 07 A0 00 00 00 62 00 01 03 00 0F 01 0B D1 56 00 01 32 0A 64 65 6D 8F 01 00 49 06 00 20 00 00 00 80 03 04 00 02 04 04 00 06 00 69 FF FF 00 57 00 73 00 E4 01 48 01 61 01 A1 01 D1 02 3F 07 02 80 00 04 42 18 8C 00 1A 19 1E 25 29 04 19 1E 04 41 16 04 41 04 41 25 29 05 16 05 05 6A 08 11 69 84 8D 00 0A 18 10 11 8D 00 18 87 00 AD 00 01 94 00 00 04 69 0C 10 6A 10 88 8D 00 05 8D 00 0A 18 19 1E 04 41 16 04 8B 00 06 7A 05 30 8F 00 07 3D 18 1D 1E 8C 00 08 3B 7A 02 10 18 8D 00 09 87 01
<< 6A 80   Incorrect parameters in the command data field

Download cap failed...

>> cardinfo
>> 80 F2 80 00 02 4F 00 00
<< 08 A0 00 00 00 03 00 00 00 01 9E 90 00

>> 80 F2 40 00 02 4F 00 00
<< 6A 88   Referenced data or reference data not found

Card Manager AID   :  A000000003000000
Card Manager state :  OP_READY



What I have to check? (It works on JCIOM/128C but not in JCO/0/19 v2.3.1)



JCOP10/18 V2.3.1 https://javacardos.com/store/java_jcop_1018_card.php 。 It supported by Java Card 2.2.1. So you have to make sure the javacard kit is 2.2.1.
Two step:
1. press F4
1.png

2. choose the right one kit.
2.png
You do not have the required permissions to view the files attached to this post. Please login first.

benys
Posts: 4
Joined: Fri Dec 29, 2017 3:51 am
Points: 36
Contact:

Re: Run Hello World -Java Card JC10M128C

Postby benys » Thu Jan 04, 2018 9:52 am

Its works ! I deploy my hello world solution :-)


Return to “Questions & Answers”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer