JCOP tools and walllet example

Hi,
I'm trying to execute the well known (not for me ;-)) Wallet example with JCOP tools 3.1.1 but I have some problems.
The first is related to install parameters: searching into other threads I was able to install the applet using 0102030405 parameter (even if it's not clear for me the meaning of this parameter, the install method accepts 3 parameters, bArray, bOffset and bLength).
Here the install APDU trace:
cm> install -i 77616c6c65742e617070 -q C9#(0102030405) 6578616d706c6573 77616c6c65742e617070
=> 80 E6 0C 00 2A 08 65 78 61 6D 70 6C 65 73 0A 77 ....*.examples.w
61 6C 6C 65 74 2E 61 70 70 0A 77 61 6C 6C 65 74 allet.app.wallet
2E 61 70 70 01 00 07 C9 05 01 02 03 04 05 00 00 .app............
(2002 usec)
<= 90 00 ..
Status: No Error
cm> card-info
=> 80 F2 80 00 02 4F 00 00 .....O..
(471848 nsec)
<= 08 A0 00 00 00 03 00 00 00 01 9E 90 00 .............
Status: No Error
=> 80 F2 40 00 02 4F 00 00 [email protected]..
(521854 nsec)
<= 0A 77 61 6C 6C 65 74 2E 61 70 70 07 00 90 00 .wallet.app....
Status: No Error
=> 80 F2 10 00 02 4F 00 00 .....O..
(762666 nsec)
<= 07 A0 00 00 00 03 53 50 01 00 01 08 A0 00 00 00 ......SP........
03 53 50 41 08 65 78 61 6D 70 6C 65 73 01 00 01 .SPA.examples...
0A 77 61 6C 6C 65 74 2E 61 70 70 90 00 .wallet.app..
Status: No Error
Card Manager AID : A000000003000000
Card Manager state : OP_READY
Application: SELECTABLE (--------) "wallet.app"
Load File : LOADED (--------) A0000000035350 (Security Domain)
Module : A000000003535041
Load File : LOADED (--------) "examples"
Module : "wallet.app"
After that I'm not able to select the applet, here the APDU trace:
cm> /select |wallet.app
=> 00 A4 04 00 0A 77 61 6C 6C 65 74 2E 61 70 70 00 .....wallet.app.
(334400 nsec)
<= 6E 00 n.
Status: CLA value not supported
jcshell: Error code: 6e00 (CLA value not supported)
jcshell: Wrong response APDU: 6E00
Any help would be very appreciated.
Dariush.

Dariush, whether this pin data or not is defined inside an applet. As for Wallet it must be pin value. But I saw several implementations of Wallet applet with different initialize parameters processing.
Consider this code:
   private Wallet(byte[] bArray, short bOffset, byte bLength) {
      pin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);
      byte iLen = bArray[bOffset]; // aid length
      bOffset = (short) (bOffset + iLen + 1);
      byte cLen = bArray[bOffset]; // info length
      bOffset = (short) (bOffset + cLen + 1);
      byte aLen = bArray[bOffset]; // applet data length
      pin.update(bArray, (short) (bOffset + 1), aLen);
      register();
   public static void install(byte[] bArray, short bOffset, byte bLength) {
      new Wallet(bArray, bOffset, bLength);
   }Think of bArray data array as installation parameters (like command-line params in main method of the Java application); some of them you defined using C9 tag in JCOP Shell. Look at the comments in Wallet constructor and you will understand what data is passed. aLen variable denotes the length of parameters you passed through C9 tag.
You can make a breakpoint on the first line in the constructor and then inspect what bArray actually contains.
bOffset - is the offset in bArray, bLength - length of the installation params.
Regards, Eugene

Similar Messages

  • Request for JCOP tool and gpShell tool download URL

    Hi friends,
    I am not able to get JCOP tool from any downloadable site. If any one have JCOP tool and other tools related to Java card pls send me to my email id [email protected]
    Or pls send me the valid URL to download those tools.
    regards,
    dhaya.

    Deborah,
    It would have been helpful if you had posted here with Firefox, instead of IE; that way we would have seen the Firefox user agent. Based upon the cut off description you posted in the Topic field, your problem is likely caused by a modified user agent that the addons website doesn't understand.
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''general.useragent.'''
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset''''',
    Then restart Firefox

  • Where can I download JCOP tools and activate it

    as I have learned that :As of July 1st 2007, all support activities for the JCOP operating system on NXP/Philips silicon will be serviced by NXP Semiconductors.
    Please email requests for the JCOP Tools to: [email protected]
    It means that I have to request the JCOP Tools from the above mail and have no any other means?
    can you tell me other way to get the JCOP Tools, thank you very much!

    A guy from NXP explained to me that they need to follow export control regulations strictly as it is basically an U.S. product. The second thing is that most JCOP products are Common Criteria certified and this requires that also the simulation included in JCOP is handled under NDA. To remove JCOP Tools from all this constraints would mean that all crypto functionality is minimized to the same level as in Sun's Java Card development kit (tools + simulation).
    Maybe IBM had a smarter way of deailing with this or had a special deal with the U.S. customs, don't know.

  • Please advice me about JCOP tools and installation problem

    Hello
    Somebody please suggest me what should I solve this problem.
    I'm currently developing the applet which activate when the SMS send to trick this applet, then it will return the SMS back to the sender which contain a location information of cellsite.
    I used the Axalto tools to generate my code. But the problem is when I put this code simulting with JCOP, it shows this error
    cm>  upload "D:\Sourcecode\SMS_Proactive_CMD\bin\SMS_Proactive_CMD\javacard\SMS_Proactive_CMD.cap"
    => 80 E6 02 00 17 0A 53 4D 53 5F 50 72 6F 61 63 74    ......SMS_Proact
        08 A0 00 00 00 03 00 00 00 00 00 00 00             .............
    (3350 usec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 00 00 FF C4 82 02 7B 01 00 26 DE CA FF ED    ........{..&....
        02 02 04 00 01 0A 53 4D 53 5F 50 72 6F 61 63 74    ......SMS_Proact
        11 53 4D 53 5F 50 72 6F 61 63 74 69 76 65 5F 43    .SMS_Proactive_C
        4D 44 02 00 21 00 26 00 21 00 12 00 1E 00 6E 00    MD..!.&.!.....n.
        1A 01 16 00 0A 00 41 00 00 01 0D 04 EF 00 04 00    ......A.........
        00 00 00 02 01 00 04 00 1E 02 02 01 07 A0 00 00    ................
        00 62 01 01 06 02 10 A0 00 00 00 09 00 03 FF FF    .b..............
        FF FF 89 10 71 00 02 03 00 12 01 0E 53 4D 53 5F    ....q.......SMS_
        50 72 6F 61 63 74 2E 61 70 70 00 2E 06 00 1A 00    Proact.app......
        00 43 80 03 0A 00 04 07 02 00 00 00 3D 00 40 81    .C..........=.@.
        00 00 81 01 01 08 80 02 00 07 01 16 00 02 10 18    ................
        8C 00 15 18 01 87 02 18 01 87 05 18 01 87 08 18    ................
        8D 00 0D 87 09 AD 09 05 8B 00 11 10 79 90 0B 7F    ............y...
        00 0E 10 48 90 0B 7F 00 0C 7A 02 31 8F 00 18 3D    ...H.....z.1...=
        8C 00 0B 2E 1B 8B 00 0A 7A 00 20 7A 05 21 18 8D    ........z. z.!..
        00 19 87 02 18 8D 00 1A 87 08 1D 73 00 C6 00 02    ...........s....
        00 02 00 09 00                                     .....
    (4805 usec)
    <= 6A 80                                              j.
    Status: Wrong data
    jcshell: Error code: 6a80 (Wrong data)
    jcshell: Wrong response APDU: 6A80
    Unexpected error; aborting executionOn the other hand, when I use the GEMPLUS App. Manager Tool to load and install the applet into SIM card, it can load package in to the card but it can't install. It shows that
    6985 Conditions of use not satisfiedPlease help me, Thank you for you kind.

    Hi,
    I am using JCOP and getting the exact same error message as you, only not when simulating, when trying to install the applet to the card.
    When I simulate the card there is no problem at all, but when trying to upload, that error message appears, no matter what i try to upload.
    My e-mail adress is [email protected], please contact me If you manage to solve the problem or you have any questions.
    Best regards,
    Pierre

  • Getting started with JCOP Tools

    I have a working Eclipse + JCOP Tools installation, activated. I now also have a Cardman reader (drivers loaded) and some blank JCOP30 cards. I read through the Eclipse embedded JCOP help page, but couldn't find the answers to some simple questions:
    1. How can I see a list of connected readers to ensure my reader hardware is recognized? I read earlier on the forums about a "Launch Configuration page". How do I access this page?
    2. The JCOP Shell seems to be working... my cards are blank and /terminal does show "Slot empty" or "Card present" so I presume the interface is running fine. My cards are totally blank. Can I still read any useful info from them such as vendor strings, version#, etc?
    3. Do the JCOP Tools 3.1.2 come with a sample project? Since I've never used this environment, I would love to see an example of working code that can be simulated or loaded onto a physical card. It would help me "learn by example"
    If there is sample code, where can I find it? I tried to use Eclipse's import from archive but didn't find anything resembling samples within jcop tools. Any example you know of would be great.

    Here is the ATR and cplc output for my card. So far I know with certainty it's JCOP30-something and it supports T=CL.
    But I'm not even sure which Java Card and Global Platform it supports! The "JCOP version map" from the 2003 specs document says JC 2.1.1 and GP 2.0.1, but http://www-306.ibm.com/software/wireless/wecos/jcop30.html says these cards are JC 2.2.1 and GP 2.1.1. Yikes! Which do I have?
    cm>  /atr
    resetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B 86 80 01 4A 43 4F 50 33 30 12                   ;...JCOP30.
    ATR: T=0, T=1, Hist="JCOP30"
    cm>  get-cplc
    => 80 CA 9F 7F 00                                     .....
    (11274 usec)
    <= 9F 7F 2A 40 70 95 16 40 51 30 84 30 1A 61 12 00    ..*@[email protected]..
        69 00 90 95 59 40 70 61 19 00 00 00 00 06 31 13    [email protected].
        30 36 39 30 30 00 00 00 00 00 00 00 00 90 00       06900..........
    Status: No Error
      IC Fabricator                      : 4070
      IC Type                            : 9516
      Operating System ID                : 4051
      Operating System release date      : 3084 (25.3.2003)
      Operating System release level     : 301A
      IC Fabrication Date                : 6112 (22.4.2006)
      IC Serial Number                   : 00690090
      IC Batch Identifier                : 9559
      IC Module Fabricator               : 4070
      IC Module Packaging Date           : 6119 (29.4.2006)
      ICC Manufacturer                   : 0000
      IC Embedding Date                  : 0000
      IC Pre-Personalizer                : 0631
      IC Pre-Perso. Equipment Date       : 1330 (26.11.2001)
      IC Pre-Perso. Equipment ID         : 36393030
      IC Personalizer                    : 0000
      IC Personalization Date            : 0000
      IC Perso. Equipment ID             : 00000000

  • Java card cap file install error in jcop tools

    When i try to run java card applet in real java card it gives this error.i used jcop tools and java version 1.5  and eclipse 3.2.when i run the applet in simulater it works fine.i saw some document it says allocate memory for the installation process.i don't know how to do that.
    /term "winscard:4|SCM Microsystems Inc. SCL010 Contactless Reader 0"
    --Opening terminal
    >  /card -a a000000003000000 -c com.ibm.jc.CardManager
    resetCard with timeout: 0 (ms)
    --Waiting for card...
    ATR=3B 8A 80 01 4A 43 4F 50 33 31 56 32 33 32 7A       ;...JCOP31V232z
    ATR: T=0, T=1, Hist="JCOP31V232"
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00          ..............
    (23807 usec)
    <= 6F 65 84 08 A0 00 00 00 03 00 00 00 A5 59 9F 65    oe...........Y.e
        01 FF 9F 6E 06 47 91 73 51 2E 00 73 4A 06 07 2A    ...n.G.sQ..sJ..*
        86 48 86 FC 6B 01 60 0C 06 0A 2A 86 48 86 FC 6B    .H..k.`...*.H..k
        02 02 01 01 63 09 06 07 2A 86 48 86 FC 6B 03 64    ....c...*.H..k.d
        0B 06 09 2A 86 48 86 FC 6B 04 02 15 65 0B 06 09    ...*.H..k...e...
        2B 85 10 86 48 64 02 01 03 66 0C 06 0A 2B 06 01    +...Hd...f...+..
        04 01 2A 02 6E 01 02 90 00                         ..*.n....
    Status: No Error
    cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm>  init-update 255
    => 80 50 00 00 08 AC B1 90 01 BF 2D 24 A0 00          .P........-$..
    (49906 usec)
    <= 00 00 91 18 01 39 93 95 05 59 FF 02 00 2C BE 39    .....9...Y...,.9
        5E A5 07 55 87 B8 C3 A8 A6 93 66 2B 90 00          ^..U......f+..
    Status: No Error
    cm>  ext-auth plain
    => 84 82 00 00 10 0C AE 50 3E C8 7E 1D 92 29 E2 59    .......P>.~..).Y
        08 D9 DA 02 16                                     .....
    (57276 usec)
    <= 90 00                                              ..
    Status: No Error
    cm>  delete 060504030201
    => 80 E4 00 00 08 4F 06 06 05 04 03 02 01 00          .....O........
    (40041 usec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  delete 010203040506
    => 80 E4 00 00 08 4F 06 01 02 03 04 05 06 00          .....O........
    (17392 usec)
    <= 6A 88                                              j.
    Status: Reference data not found
    jcshell: Error code: 6a88 (Reference data not found)
    jcshell: Wrong response APDU: 6A88
    Ignoring expected error
    cm>  upload -d -b 250 "Cap File location"
    => 80 E6 02 00 13 06 01 02 03 04 05 06 08 A0 00 00    ................
        00 03 00 00 00 00 00 00 00                         .........
    (32303 usec)
    <= 00 90 00                                           ...
    Status: No Error
    => 80 E8 00 00 FA C4 81 F2 01 00 23 DE CA FF ED 02    ..........#.....
        02 04 00 01 06 01 02 03 04 05 06 12 68 6D 73 2F    ............hms/
        6A 61 76 61 63 61 72 64 2F 68 65 6C 6C 6F 02 00    javacard/hello..
        21 00 23 00 21 00 0A 00 0B 00 1E 00 0E 00 3D 00    !.#.!.........=.
        0A 00 0B 00 00 00 4D 01 BE 00 00 00 00 00 00 01    ......M.........
        01 00 04 00 0B 01 02 01 07 A0 00 00 00 62 01 01    .............b..
        03 00 0A 01 06 06 05 04 03 02 01 00 08 06 00 0E    ................
        00 00 00 80 03 00 FF 00 07 01 00 00 00 1C 07 00    ................
        3D 00 01 10 18 8C 00 05 7A 05 30 8F 00 00 3D 8C    =.......z.0...=.
        00 01 18 1D 04 41 18 1D 25 8B 00 02 7A 02 21 18    .....A..%...z.!.
        8B 00 03 60 03 7A 19 8B 00 04 2D 1A 04 25 73 00    ...`.z....-..%s.
        09 00 00 00 00 00 0F 11 6D 00 8D 00 06 7A 08 00    ........m....z..
        0A 00 00 00 00 00 00 00 00 00 00 05 00 1E 00 07    ................
        01 00 02 00 06 00 00 01 03 80 03 02 03 80 03 03    ................
        03 80 0A 01 06 80 03 00 06 80 07 01 09 00 0B 00    ................
        00 00 07 05 06 04 0A 07 07 13 0B 00 4D 01 00 00    ............M...
    (764519 usec)
    <= 6A 80                                              j.
    Status: Wrong data
    jcshell: Error code: 6a80 (Wrong data)
    jcshell: Wrong response APDU: 6A80
    Unexpected error; aborting execution

    Thanks ReNa
    i am using nxp jcop 31 contact-less card.and it will support for java card 2.2.1 and global-platform card specification 2.1.1 .so i am using nxp jcop training 2007 tools and it has java card 2.2.1 and global-platform card specification 2.1.1.Inside my project there are three jar files these are jc221.jar and gp211.jar and bio10.jar
    i will appreciate your help
    Thanks

  • Jcop tool

    I just bought the JCOP tools and a javacard reader/writer and i am so much confused as per its functions one of the problems i am having
    is that
    (1) In Suns Javacard parkage , AIDS are in the form 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0x8:0x1 while in the JCOP
    environment i noticed was in the form 01020304050601 which i assumed is in the decimal format how do i convert.
    (2) i tried writing a program which compiled well , when i wanted to test it with the JCShell it came out with this
    error "Not yet Connected to terminal" What could be the cause of this.
    (3) I have a Gemplus GPR400 Reader/writer attached to my laptop, though the computer has located and loaded drivers for it
    i still don't know how to like access the reader or download applets onto it , I don't know if the JCOP tool can download onto it

    >
    3. JCOP requires a PC/SC reader attached if you want
    to load onto one of the JCOP cards. You can also use
    the simulator for debugging. It appears that your
    reader might not be found, which could be related to
    question 2.yeah i guess so cos when i went to services i tried starting "Smart Card Resource Manager" and "Smart Card Helper" they would not start , they always give this error "The Dependency Service or group failed to start" what can be causing this probs i am using win Xp

  • Jcop tool (jcshell ) vs gpshell *mutual_authentication() returns 0x80302000

    I think that jcop tool and gpshell are two technique to upload applet inside the card , M i right? or these both are any real big difference????????
    In Jcop i used following command to upload a cap file inside the java card
    cm>  /terminal "PCSC|SCM Microsystems Inc. SCL010 Contactless Reader 0"
    --Opening terminal
    <div class="jive-quote"> /card -a a000000003000000 -c com.ibm.jc.CardManager</div>
    cm>  set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm>  init-update 255
    cm>  ext-auth plain
    Status: No Error
    cm>  delete a0010203040506070809
                                               j.
    cm>  delete a00102030405060708
                                              j.
    cm>  upload "C:\Documents and Settings\amit pathak\workspace\jcop\bin\jcop\javacard\jcop.cap"
    cm>  install -i a0010203040506070809 -q C9#() a00102030405060708 a0010203040506070809
    Status: No Error
    cm>  card-info
    => 80 F2 80 00 02 4F 00 00                            .....O..
    (8301 usec)
    <= 08 A0 00 00 00 03 00 00 00 01 9E 90 00             .............
    Status: No Error
    => 80 F2 40 00 02 4F 00 00                            [email protected]..
    (279151 usec)
    <= 07 A0 00 00 02 47 10 01 07 00 0A A0 01 02 03 04    .....G..........
        05 06 07 08 09 07 00 90 00                         .........
    Status: No Error
    => 80 F2 10 00 02 4F 00 00                            .....O..
    (24089 usec)
    <= 07 A0 00 00 00 03 53 50 01 00 01 08 A0 00 00 00    ......SP........
        03 53 50 41 08 44 65 6D 6F 49 4C 4A 41 01 00 01    .SPA.DemoILJA...
        07 A0 00 00 02 47 10 01 09 A0 01 02 03 04 05 06    .....G..........
        07 08 01 00 01 0A A0 01 02 03 04 05 06 07 08 09    ................
        90 00                                              ..
    Status: No Error
    Card Manager AID   :  A000000003000000
    Card Manager state :  OP_READY
        Application:  SELECTABLE (--------) A0000002471001 
        Application:  SELECTABLE (--------) A0010203040506070809
        Load File  :      LOADED (--------) A0000000035350   (Security Domain)
         Module    :                        A000000003535041
        Load File  :      LOADED (--------) "DemoILJA"     
         Module    :                        A0000002471001
        Load File  :      LOADED (--------) A00102030405060708
         Module    :                        A0010203040506070809
    cm>  \select a0010203040506070809
    jcshell: Backslash only in quotes allowed
    cm>  /select a0010203040506070809
    => 00 A4 04 00 0A A0 01 02 03 04 05 06 07 08 09 00    ................
    (5891 usec)
    <= 90 00                                              ..
    Status: No Error
    cm>  /send 8002000003
    => 80 02 00 00 03                                     .....
    (6023 usec)
    <= 01 02 03 90 00                                     .....
    Status: No Error
    basically jcop tool automatically write these commands on the shell when uploading cap file in the card...
    when i try gpshell to upload cap file i got this error like:-
    D:\amit pathak\all in one (java)\GPShell-1.4.4\GPShell-1.4.4>GPShell.exe list.tx
    t
    mode_201
    enable_trace
    establish_context
    card_connect
    select -AID a0000000030000
    Command --> 00A4040007A0000000030000
    Wrapped command --> 00A4040007A0000000030000
    Response <-- 6F198408A000000003000000A50D9F6E064051420422009F6501FF9000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
    f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Command --> 805000000894918FD9BC6C5F8700
    Wrapped command --> 805000000894918FD9BC6C5F8700
    Response <-- 00004330001341906809FF02005D6C4BE624901F1DB57E450CE1976E9000
    *mutual_authentication() returns 0x80302000 (The verification of the card cryptog*
    ram failed.)why it is happening ? i am able to use the commands of jcop and gpshell , but i dont know about command meaning !!! could anybody give me some links where i can learn more about jcop and gpshell, about why it used, about it associated commands and their meaning..
    Edited by: rohit pathak on May 8, 2012 9:13 PM

    D:\amit pathak\all in one (java)\GPShell-1.4.4\GPShell-1.4.4>GPShell.exe list.tx
    t
    mode_201
    enable_trace
    establish_context
    card_connect
    select -AID a0000000030000
    Command --> 00A4040007A0000000030000
    Wrapped command --> 00A4040007A0000000030000
    Response <-- 6F198408A000000003000000A50D9F6E064051420422009F6501FF9000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
    f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Command --> 805000000894918FD9BC6C5F8700
    Wrapped command --> 805000000894918FD9BC6C5F8700
    Response <-- 00004330001341906809FF02005D6C4BE624901F1DB57E450CE1976E9000
    *mutual_authentication() returns 0x80302000 (The verification of the card cryptog*
    ram failed.)why it is happening ? You may have the wrong GP version (mode_201 sets the operation to OpenPlatform 2.0.1). You could try mode_211.
    i am able to use the commands of jcop and gpshell , but i dont know about command meaning !!! could anybody give me some links where i can learn more about jcop and gpshell, about why it used, about it associated commands and their meaning..The GP card spec describes all of the card management commands. You may also need to read some of the JCVM spec for Java Card to understand the format of the load command as well.
    Shane

  • Testing Java_card_kit  examples with JCOP tools

    Hi again,
    I'm moving from the Wallet example to more sophisticated examples from the java card kit, how to import those examples into JCOP tools projects?
    For example, the JavaPurse applet involves more classes and packages, if I copy&paste JavaPurse and SampleLibrary packages into my JCOP project, I fall into the following errors:
    - error resolving constant-pool of clazz Lcom/sun/javacard/samples/JavaPurse/JavaPurse; failed: missing export file for package com/sun/javacard/samples/SampleLibrary
    - AID for package com.sun.javacard.samples.SampleLibrary is invalid or not set
    Best regards, Dariush.

    Thank you again, it works.
    Now, what about developing a client application? Do you know if there's an OCF client example to use with?
    I have also another question about the OPSystem class, that should be deprecated and substituted by GPSystem class....
    In the cryptosample example
    http://www.zurich.ibm.com/jcop/download/projects/cryptosample/Sample6.java
    there's the following code:
    if(OPSystem.getCardContentState() == OPSystem.APPLET_PERSONALIZED)
    GPSystem doesn't have APPLET_PERSONALIZED constant, what should I use?
    ciao, Dariush.

  • Instructions for Downloading and Activating the JCOP Tools

    In response to my question:
    I refer to JCOP Tools available on Eclipse.
    If the plug-in free for download?
    If it is not, kindly provide a proper hyperlink from which those interested can place their order.Listed below is the reply from IBM. Can anyone who has successfully obtained the activation code this way confirm whether you need to foot the postage?
    Cheers!!!!
    There is no charge for the JCOP Tools. The tools are provided as-is with no warranty or support. Instructions for downloading and activating the tools follow.
    Please note that because our Java Card operating system is now available for more than one silicon vendor, IBM will no longer act as a distributor for sample cards. If you require a sample card, you must now approach the silicon vendors directly . Our current silicon partners are Philips Semiconductor, Samsung and Sharp. In addition you may be able to obtain JCOP sample cards from suppliers on this list http://www.zurich.ibm.com/jcop/order/cards.html
    JCOP Tools are subject to US Government Export Controls, and therefore each install has to be activated individually to ensure compliance. Please follow the instructions below for each copy of the tools that need to be activated.
    Prerequisites:
       1. If you do not already have a Java Runtime Environment (JRE) installed, download and install a JRE or JDK. You can do so from this website (http://java.sun.com/j2se/1.4.2/download.html). Please note that we recommend the use of JRE version 1.4.2.
       2. If you do not already have the open source software development environment Eclipse installed, download and install Eclipse (http://www.eclipse.org/), You can do so from this website(http://www.eclipse.org/downloads/index.php). JCOP Tools require Eclipse 3.1
    To download the tools and start install:
       1. Download the current Update Site image from here (http://www.zurich.ibm.com/jcop/download/eclipse/image/tools.zip)
       2. Unzip the downloaded file to a location of your choice
       3. Start the Eclipse IDE
       4. From the menu bar click on Help > Software Updates > Find and Install
       5. In the Install/Update Dialog select Search for new features to install
       6. Click Next
       7. Click on New Archived Site . . . and browse to the location chosen in step 2
       8. Select the file tools.zip
       9. Click Open then OK then Finish
      10. Eclipse Update Manager will start to install the plug-in, continue with the install as needed.
    For an activation code please send me ([email protected]) the following information:
       1. Your full postal address  - the serial number will be sent via International Courier for US Export control reasons.
       2. Your contact telephone number
       3. The serial number of your JCOP tools install
       4. Your planned usage/reason for needing the JCOP tools
       5. If a student, a copy (fax or digital photo) of your student ID
    For the serial number (item 3 above):
       1. Ensure you have downloaded and installed the JCOP Tools
       2. Start the Eclipse IDE
       3. From the menu bar click on File > New > Project
       4. In the New Project Dialog expand the Java Card folder
       5. Select Java Card Project
       6. Click Next
       7. You should now see the JCOP Licensing Wizard
       8. Click Next
       9. Select Verify an Activation Code
      10. Click Next
      11. The Serial Number should appear on the next page, above the Activation Code entry fields.
      12. Once you have that number click on Cancel then Abort (Note: the Java Card project choice will be disabled until the next time you restart Eclipse)

    For those who are interested to use the JCOP simulator for a start, I have checked that the plug-in and feature files (in tools.zip) for Eclipse are still available at IBM site, please download and install yourself.
    I still keep a copy of user guide for JCOP tools (version 3.1.1a) and the contents are still relevant to Version 3.1.1b simulator in tools.zip.
    If you are interested to have a copy of such document, kindly drop me an email to [email protected]

  • JCOP Tools 3.1.1.b and other Cards

    Hello
    At the moment I'am working at my degree dissertation. A little part of this dissertation is to write a cardlet on a javacard.
    I have got the JCOP Tools 3.1.1.b for Eclipse, but JavaCards of other      producers: Safenet Model 330J, GemSafeXpresso 32 k and cyberflex Access e-gate 32K(Schlumberger / Axalto).
    At the moment i don't know how to bring my java card applet on the card.
    In the JCOP Tools i can only choose the preconfigured Type "JCOP Engeneering Sample". Is there a way to become more preconfigured card types? Or anyone knows the custom type settings for any of the cards?

    I am on a similiar assignment in my office and not an expert but after a couple of weeks of research i have found a few things.
    1. Its better to get JCOP20,JCOP30 or JCOP41 cards for compatibility reason and avoiding over work
    2. Buy a PC/SC compliant Smart Card Reader for compatibility reasons.
    i have already ordered these.
    Secondly check this link for loader application, code is fine but cap file version was the issue.
    http://forum.java.sun.com/thread.jspa?forumID=23&threadID=702955
    i havnot got the real cards but i believe that JCOP tools will be able to uplaod the application on it without the need of above code. As running simulations we have option of Install in the ide.
    Any ways some expert guy on the forum will answer you shortly -:)
    Bilal

  • JCOP tools on 64-bit platform

    Hello.
    Is there any way to find jct.dll, jcpcsc.dll (those are in the jcop plug-in os/ directory) analogues for 64-bit platform?
    As i know, jcop tools provides only dll's and so libraries for 32-bit platforms to communicate with the card? Are there any 64-bit compatible?
    I want to use Offcard API from JCOP tools on 64-bit platform (it uses mentioned above dlls or shared objects on Linux).
    Best regards,
    eveline-z

    eveline-z wrote:
    Thanks for your reply.
    So, Eclipse IDE with JCOP plug-in work fine on 64-bit platform without any emulation?Yes
    I mean, you had no problems with connecting to a real card through the JCShell or even using JCOP Offcard API (because those are using native dll's for 32-bit platform which reside in com.ibm.bluez.jcop.eclipse_3.1.2\os\win32\x86\ directory)?I tested only on the simulator
    The "com.ibm.bluez.jcop.eclipse_3.1.2\os\win32\x86\" directory is in the folder plugins in your eclipse path.
    example : c:\eclipse\plugins\com.ibm.bluez.jcop.eclipse_3.1.2\os\win32\x86\
    >
    >
    Thanks.
    Best regards,
    eveline-zMaDmEd

  • JCOP tools activation!

    Since JCOP tools was moved to NXP by IBM, I can't get activation code from NXP. It is said that JCOP sample card can be used to activate JCOP tools.
    Can all of JCOP family cards(10,20,30 or else) be useful for JCOP activation?
    How is the activation process ?
    Where can I buy JCOP sample card?
    By the way,I have a contacless card reader from Gemplus and Gemcombi XR4 card.
    Thanks!

    Bobby_SH wrote:
    Since JCOP tools was moved to NXP by IBM, I can't get activation code from NXP. It is said that JCOP sample card can be used to activate JCOP tools. Yes.
    Can all of JCOP family cards(10,20,30 or else) be useful for JCOP activation? Check out the nice post from sonnyyu at http://forum.java.sun.com/thread.jspa?threadID=5180928 .
    How is the activation process ? As soon as you want to create a Java Card project you have the choice to unlock the tools with a JCOP engineering sample.
    Where can I buy JCOP sample card?
    http://www.usasmartcard.com/ for example
    By the way,I have a contacless card reader from Gemplus and Gemcombi XR4 card. Should work as long they are PCSC compliant.
    >
    Thanks!

  • I can not create interface [Eclipse - JCOP Tools Problem]

    Hello Dear All,
    I have a problem about Eclipse and I want to demonstrate it with an example.Let's say there are two applets, called A and B. I want to share a function of A applet with B applet. To do it, I create an interface(File -> New -> Other -> Interface) and then, a problem occured. For all open projects in eclipse, eclipse shows this error message: "Unsupported Java compiler: Class files with version: 50.0 [Major.minor] are not yet supported by JCOP Tools."
    I worked on this situation too much however I could not solve this problem, I need your help.
    (I use last version of Eclipse and JCOP Tools)
    Thanks in Advance,
    Kindly Regards
    Selcuk

    JCOP Tools does not support Java 6 yet. Reason is the CAP file converter. Just set the Java compiler compliancy in Eclipse to 1.5 and you should be fine.

  • Can't get JCOP tools

    Hi everyone,
    I need to develop a Java Card application for NXP JCOP 21 - 36Kb cards. I don't have cards so far but want to look at JCOP API to ensure it is what I need and can work with.
    However, it seems that I simply can't get JCOP from anywhere! I tried to download it from IBM and here's what I got it tools.zip:
    As of July 1st 2007, all support activities for the JCOP operating system on NXP/Philips silicon will be serviced by  NXP Semiconductors.
    Please email requests for the JCOP Tools to: [email protected]
    As you may have guessed I wrote them to NXP. They don't reply for 4 days already. What am I supposed to do? Any ideas would be appreciated.
    Thanks in advance.

    Hi DomElion
    Ive been researching extensively on java smartcard project for a while since I got involved in one such project very recently. Im a total newbie hence need some guidance regarding the same. Came across this posting and thought maybe I could get some help (which I desparately need now :(( )
    Ive got SETECS 256k java smart card and a card reader. I installed java card 2.2, gpshell and java 6 (for smartcard IO). But sinct smart card IO can be used only to communicate with the card (and applets already on card) I still need java card kit and GPShell to install/load applets on the card. Hence Im now trying to understand the helloWorld applet loading given as example in the GPShell installation. But Im unable to understand few things in their script (which Im sure might be very basic and foolish of me to not understand that too :( ). But Ive successfully tried simulator, but I really need to write something and read it back from the "real" card !!
    Request to please please help me understand how to write and read back using GPShell. For example this is the script provided as sample by GPShell
    mode_211
    enable_trace
    establish_context
    card_connect
    select -AID a000000003000000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    delete -AID a00000006203010c0101
    delete -AID a00000006203010c01
    install -file HelloWorld.cap -nvDataLimit 2000 -instParam 00 -priv 2
    getdata
    # close_sc // Close secure channel
    # putkey // Put key
    // options:
    // -keyind Key index
    // -keyver Key version
    // -key Key value in hex
    card_disconnect
    release_context
    As seen above the line in bold is installing the helloworld on the card. But where is the AID assigned to it? What are the AIDs which are getting deleted? And what is the "select -AID a000000003000000" meaning?
    Also now that I have the helloWorld on the card how can I read that applet back to return to me "hello world" using smartcard io or even java card 2.2?
    Please please please please help !
    Thanks so much
    WAITING to hear back
    Best Regards

Maybe you are looking for