Other Java Card Emulator

Is there any other java card emulator besides cref from Java Card Development Kit?

Dome313 wrote:
Is there any other java card emulator besides cref from Java Card Development Kit?Hi,
You will find that some of the major vendors have simulators available for their cards. Each of these simulators is designed to perform the same as the OS on the card so like different cards, different simulators can perform differently.
NXP (JCOP), Gemalto and G&D all have a tool set for simulating (at least some of) their cards. These are built into an IDE. Some of these tools are hard to get a hold of and you should make sure any of these will meet your needs before paying for them (Gemalto Developer Suite is targeted at USIM development). You may be able to find other vendors that have similar offerings as well.
Cheers,
Shane

Similar Messages

  • With JCOP IDE with other Java Card.

    Hello,
    Can I use any Java Card in the JCOP IDE? Anyone have this kind of experience? If I can do it, then what kind of information do I need?
    I'm wondering if it's necessary to buy development tool kits for each java card.
    Thanks,
    Julie.

    Now I know the CM AID and key set. but still have problem. Here are the steps.
    1. open JCShell.
    2. open Terminal
    3. /atr
    4. select CM - get 9000
    5. set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F ~ 255/3/40....
    ---> Java Card key set is 0x00. and is it correct to use like above?
    ---> What is DEC-ECB? this key set type should be changed?
    6. init-update 255
    ??> init-update 255
    => 80 50 00 00 08 E5 70 E8 65 7B 6B 23 DC 00 .P....p.e{k#..
    (78 msec)
    <= 00 00 31 69 00 02 73 71 08 00 00 00 25 81 4D D0 ..1i..sq....%.M.
    D0 06 62 77 9B EB 72 7F 2E AC F8 B7 90 00 ..bw..r.......
    Status: No Error
    Error code: -8 (Failed (no diagnosis))
    Error message: No such key: 0/1
    Command failed.
    Please help me out.
    Thanks a lot.
    Julie.

  • Does java card supports apple OS X ?

    Hi Folk,
    I'm trying to test java card on my os x snow leopard . is the current release of java card 3 supports apple ? and if not , are they planing to support mac os x ? was trying netbean's plugin with the emulator but seems that it's not working ..
    Any help would be highly appreciated .
    Thanks in advance .

    Hi,
    Firstly, you should not be looking for the latest release of the JCDK from the Oracle website. You should be looking for a JCDK that matches cards you have access to. There are no JC3 cards available on the market so a more realistic approach is to go for JC 2.2.1 or 2.2.2. These older versions also have a Java card emulator. This is quite limited though compared to the native version.
    As for OS X support, many of the tools will work as they are written in Java. The main one that does not is CREF (the card emulator). There is JCWDE in older releases that should work. You may need to use a real card to test your applet completely as not many tools work with OS X. You will even need to recompile GPShell to get it to work. You will be able to develop an applet and convert it to CAP files. As long as you can get GPShell working you can then load onto a real card.
    Also there is at least one issue with the javax.smartcardio.* package on the Apple JDK. CardTerminal.isCardPresent() always returns false regardless of if there is a card or not. The PC/SC layer seems to work fine but the JDK does not. I have filled a bug report with Apple but they don't seem to care or even respond (I filled that within a week of Snow Leopard being released).
    Another option is Virtual Box or VMWare Fusion and run Windows or Linux in a VM. VirtualBox + Linux is a free alternative that may work.
    Cheers,
    Shane

  • Java card confusing Issues!!!!!!! java card architecture, advantage!!!!!

    QUESTION -1
    As I know about architecture of any application is -
                    //normal java software                          java card                                  java card
                      //  1                                               2                                      3
    1-            application program                        host application                           host application
    2-                     JVM                                   Applets                                       Applets
    3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
    4                    hardware                              Operating system                                 H/W
    5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!!
    I think - case 3 is right!!!!
    As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program
    QUESTION 2- what is the advantage of java card.?
    // I think.
    as i read out , i got the line that it is platform independent and support multiple application. applicaton point of
    view , I am agree but how it is platfrom independent. if we use java card for smart card development, then
    i will purchase Java card from differnt vendor , all will provide me card with supported jcre inside it, so why
    this is advantage here?
    // in case of window based application , it really make sense  because if i will make any window application with java
    // i can run it in windows , linux , unix and most of os flavours, here i can see the beauty of java language.
    Clear me this and add some other java card advantages, which make java card goodquestion 3-
    Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
    going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
    contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
    want to select the applet and want to pass the apdu.
    ( a) how i can make host window application ? (i think awt will work for me? , *
    i never make any java window application yet) *
    ( b) still i dont have any java card , i want to make it by using simulator, is it possible?
      (c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
    applet or from where i need to start.Regards:
    rohit pathak
    Edited by: rohit pathak on Feb 9, 2012 10:10 PM

    Hi,
    QUESTION -1
    As I know about architecture of any application is -
    //normal java software                          java card                                  java card
    //  1                                               2                                      3
    1-            application program                        host application                           host application
    2-                     JVM                                   Applets                                       Applets
    3-              operating system                JCRE(which contain all classes, JVM ....)                 JCRE(act as a O.S too)
    4                    hardware                              Operating system                                 H/W
    5                                                                        hardwareWhat do u think- case 2 is right? or 3 is!!!!!!!!!!! If you are using Java Card then JCRE+JVM = OS and if you put this on ein package 3 then 3 is correct according to me.
    As i study from several sources , JCRE is complete package - it behaves as a operation system and use the functionality of component it contain. I also think if i will purchase a java card from any vendor , it would have JCRE inside it (means everthing inside it,), i only need to develop the applet according to my requirement and install it by on card installer program Actually it depends. There can be following models in this regards:
    1. Buy a empty smart card, Install your own OS and then write your applets for it.
    2. As you said, Buy a card with preloaded OS and then write applets for it.
    QUESTION 2- what is the advantage of java card.?
    * Interoperable: Applets developed with Java Card technology will run on any Java Card technology-enabled smart card, independently of the card vendor and underlying hardware.
    * Secure: Java Card technology relies on the inherent security of the Java programming language to provide a secure execution environment. Designed through an open process, the platform's proven industry deployments and security evaluations ensure that card issuers benefit from the most capable and secure technology available today.
    * Multi-Application-Capable: Java Card technology enables multiple applications to co-exist securely on a single smart card.
    * Dynamic: New applications can be installed securely after a card has been issued, enabling card issuers to respond to their customer's changing needs dynamically.
    * Compatible with Existing Standards: The Java Card API is compatible with international standards for smart cards such as ISO7816, or EMV. Major industry-specific standards such as Global Platform and ETSI refer to it.
    * Developers creating Java Card applications enjoy all the advantages of working in the Java programming language:
    Object-oriented programming yields greater code modularity and reusability, leading to higher programmer productivity.
    Protection features characteristic of the Java programming language apply to Java Card applets, enforcing strong typing and protection attributes.
    Powerful off-the-shelf development tools are readily available.
    source: http://java.sun.com/javacard/overview.jsp
    And also, in case of SIM card if you are using java card then RAM is possible and native cards don't have this ability.
    question 3
    Now I am capaple to make simple applets, so I want to check the entire java card process atleast once before
    going in deep of something, I am thinking to implement prepaid card concept , i made it applet for it ,it will
    contain a page with 2 text box ( 1- for recharge 2- for money deduction ) and two button , with button click i
    want to select the applet and want to pass the apdu.
    ( a) how i can make host window application ? (i think awt will work for me? , *You can use swing for this to make interface and use smartcardIO http://docs.oracle.com/javase/6/docs/jre/api/security/smartcardio/spec/javax/smartcardio/package-summary.html for sending APDUs.
    i never make any java window application yet) * It is easy you can look here and start: http://www.roseindia.net/java/example/java/swing/
    ( b) still i dont have any java card , i want to make it by using simulator, is it possible?Actually, smartcardIO will only interact with actuall card and for simulator you will have to use console for sending APDUs.
    (c) in this scenario what framework i need to study Ex. Import javacard.framework.* for making
    applet or from where i need to start.For your current case it is enough and for host app you should study smartcardio as i mentioned above.
    Hope it helps.
    Regards
    Umer

  • Java card application and applet

    Hi
    I' am developing a java card application which has three applets (1-ID, 2-Purse, 3-Library). I mean the same card should be use for personal ID, purse, and as library card. Using eclipse I first have to create a new project.
    File-New-New project-java card project. Then in the package Explorer view right click src then New-other-java card Applet. My question is because my java card application has more than one applet how do I add the other two. Should I add the other two by clicking src again or just add them under the same source code belonging to the java card Applet created at the beginning.

    you mean by again doing right click src then New-other-java card Applet.

  • Reg: java card application needs

    Dear experts,
    i am a newbie to java card, After a lot of googling, i found JACCAL to aid java card programming development. I have downloaded and installed it but i dont know how to use it? any help will be greatly appreciated,
    By the way, i need to know why do we need IDE or tools for java card programming?. Cant we complete right from typing program to till burning on card using the java card kit ? please correct me, if i am wrong.
    I have tested the sample programs successfully with java card kit 2.1.2. My doubt is, What are the needs for java card application, like what CAD, card and tools should be used or purchased(most of them ,i found from the web are outdated like JCOP, OCF).
    Thanks in advance.
    SRI.

    you mean by again doing right click src then New-other-java card Applet.

  • Java Card 2.2.2 Emulator

    Hi,
    I have installed Eclipse 3.2.2 with the plug-in for Java Card, the JC JDK 2.2.2 . In order to test my applet I have installed JCOP 4.01 but I have understand that JCOP support only Java Card 2.2.1. Now the question are..
    1. How can I test my Applet write with JDK 2.2.2?
    2. Exist another free emulator like JCOP?

    1. How can I test my Applet write with JDK 2.2.2?Using the JCDK CREF emulator or buying a JC2.2.2 card
    2. Exist another free emulator like JCOP?JCOP Tools is not a free emulator. It is provided by NXP to customers on an NDA. If you have a relationship with NXP you can see if they can provide you with a version that supports JC 2.2.2. They have JC 2.2.2 cards so they should have a JCOP tools that supports this version as well.
    Cheers,
    Shane

  • How to create a java card library (jar file to be used in other programs)

    Hi all,
    I am working on JCOP and writing quite a bit of applets for the java card . Now i have lots of code that could be reusable for example sending SMS, encryption routine, etc.. So this part of the code i want to put into a utility class and create a package out of it. This utility package i must be able to import into my programs what i write.
    I tried the normal way of creating the jar by renaming the CAP file of the utility class, also tried including the /javacard/* files also into the jar file as indicated by sfarmer(active forum member here). But none seems to work. I tried contacting NXP folks and they indicated that it may be possible only by way of Sharable Objects.
    But some how i am not convinced why i should use Sharable object for this. So if any one can throw some light into this regard it will be immensely helpful to me and my project.
    Regards
    Prakash

    Hi,
    Well the variable defined are as below
    public static byte[] msgdata = new byte[255];
    private static final byte[] HEADER_TEMPLATE = {
              (byte) 0x81, (byte) 0x03, (byte) 0x01, (byte) 0x21, (byte) 0x00, // Command details tag
                   (byte) 0x82, (byte) 0x02, (byte) 0x81, (byte) 0x02, // Device Identities tag
                   (byte) 0x8D, // Text String tag
                   (byte) 0x00, // length
                   (byte) 0x04, // Text String tag
    the msgdata is declared public so that i can access this as a Class member in my other program doing Utilities.msgdata. But the problem is now that if i dont declare it as final then the compiler gives me the below error
    "library has initialized array for non-final, non-static field Utilities, msgdata, [B, attr jc-field: tok 0, public static"
    If i make it final then i cannot change it... So now i am stuck..
    Any help will be highly appreciated...
    Regards
    Prakash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • WTK and Java Card SDK 2.2.2 emulator( cref ) communication problem.

    Hello everybody
    Just for own interest I was playing with the Java Card SDK 2.2.2 and WTK 2.5.2. But I am getting "Protocol mismatch error" as WTK runs on T=0 and cref runs on T=1. Does anybody have ever faced this problem and how to get rid of it?
    Thanks in advance.
    Shan!!!

    [email protected] wrote:
    Hi friends,
    I am new to Java Card technologies, previously i worked in SCOSTA cards using java application. Now i want to develop java applet and mask into the javacard.
    I tried Java_card_kit-2.2.1 package to build cap file using sample class files based on the specification.
    In command prompt, i configured path and classpath perfectly....
    But when i tried to make cap file by using the following command i am getting error.
    set JC_HOME=C:\java_card_kit-2_2_1
    set JAVA_HOME=C:\j2sdk1.4.2_09
    SET PATH=%JC_HOME%\bin;%PATH%
    SET CLASSPATH=%JC_HOME%\lib\api21.jar;%CLASSPATH%
    converter.bat -out JCA -classdir %JC_HOME%\samples\classes\com\sun\javacard\samples\HelloWorld 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.10I am getting the following error,
    error: invalid AID 1.0.
    Usage:  converter  <options>  package_name  package_aid  major_version.minor_versionSo kindly help me the best way to make cap file.
    regards,
    dhaya.You could try the following:
    converter.bat -classdir %JC_HOME%\samples\classes com.sun.javacard.samples 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.0You only need to specify the base directory for the classes and you need to specify the package separately.
    If you only want to convert to a JCA file you would use the following otherwise all 3 artifacts will be gernerated (CAP, JCA and EXP)
    converter.bat -out JCA -classdir %JC_HOME%\samples\classes com.sun.javacard.samples 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.0I hope this helps.
    Shane

  • How to check the output of a java card program ?

    Hi,
    I am new to java card technology.I am trying to run a simple helloworld program given in the java development kit2.2 -windows samples in eclipse3.5.
    For running I followed the following steps:-
    1) Firstly,I went to JCWDE->start
    2) then on Project->java tools->deploy
    It shows me following output :-
    Java Card 2.2.2 APDU Tool, Version 1.3
    Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    Opening connection to localhost on port 9025.
    Connected.
    Received ATR = 0x3b 0xf0 0x11 0x00 0xff 0x00
    CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 09, a0, 00, 00, 00, 62, 03, 01, 08, 01, Le: 00, SW1: 90, SW2: 00
    CLA: 80, INS: b0, P1: 00, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
    CLA: 80, INS: b2, P1: 01, P2: 00, Lc: 00, Le: 00, SW1: 90, SW2: 00
    CLA: 80, INS: b4, P1: 01, P2: 00, Lc: 18, 01, 00, 15, de, ca, ff, ed, 01, 02, 04, 00, 01, 0b, 01, 02, 03, 04, 05, 06, 07, 08, 09, 00, 01, Le: 00, SW1: 64, SW2: 3a
    CLA: 80, INS: bc, P1: 01, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 02, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 02, P2: 00, Lc: 20, 02, 00, 1f, 00, 15, 00, 1f, 00, 0f, 00, 15, 00, 36, 00, 0c, 00, 69, 00, 0a, 00, 14, 00, 00, 00, 6c, 00, 00, 00, 00, 00, 00, 02, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 02, P2: 00, Lc: 02, 01, 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 02, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 04, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 04, P2: 00, Lc: 18, 04, 00, 15, 02, 03, 01, 07, a0, 00, 00, 00, 62, 01, 01, 00, 01, 07, a0, 00, 00, 00, 62, 00, 01, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 04, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 03, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 03, P2: 00, Lc: 12, 03, 00, 0f, 01, 0b, 01, 02, 03, 04, 05, 06, 07, 08, 09, 00, 00, 00, 14, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 03, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 06, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 06, P2: 00, Lc: 0f, 06, 00, 0c, 00, 80, 03, 01, 00, 01, 07, 01, 00, 00, 00, 21, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 06, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 07, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 07, P2: 00, Lc: 20, 07, 00, 69, 00, 02, 10, 18, 8c, 00, 01, 18, 11, 01, 00, 90, 0b, 87, 00, 18, 8b, 00, 02, 7a, 02, 30, 8f, 00, 03, 3d, 8c, 00, 04, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 07, P2: 00, Lc: 20, 8b, 00, 02, 7a, 05, 23, 19, 8b, 00, 05, 2d, 19, 8b, 00, 06, 32, 03, 29, 04, 70, 19, 1a, 08, ad, 00, 16, 04, 1f, 8d, 00, 0b, 3b, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 07, P2: 00, Lc: 20, 16, 04, 1f, 41, 29, 04, 19, 08, 8b, 00, 0c, 32, 1f, 64, e8, 19, 8b, 00, 07, 3b, 19, 16, 04, 08, 41, 8b, 00, 08, 19, 03, 08, 8b, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 07, P2: 00, Lc: 0c, 00, 09, 19, ad, 00, 03, 16, 04, 8b, 00, 0a, 7a, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 07, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 08, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 08, P2: 00, Lc: 0d, 08, 00, 0a, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 08, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 05, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 05, P2: 00, Lc: 20, 05, 00, 36, 00, 0d, 02, 00, 00, 00, 06, 80, 03, 00, 03, 80, 03, 01, 01, 00, 00, 00, 06, 00, 00, 01, 03, 80, 0a, 01, 03, 80, 0a, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 05, P2: 00, Lc: 19, 06, 03, 80, 0a, 07, 03, 80, 0a, 09, 03, 80, 0a, 04, 03, 80, 0a, 05, 06, 80, 10, 02, 03, 80, 0a, 03, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 05, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b2, P1: 09, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: b4, P1: 09, P2: 00, Lc: 17, 09, 00, 14, 00, 03, 0e, 27, 2c, 00, 0d, 05, 0c, 06, 04, 03, 07, 05, 10, 0c, 08, 09, 06, 09, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: bc, P1: 09, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    CLA: 80, INS: ba, P1: 00, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 21
    Can anyone tell me what is this output? And Am i deplyoing in the right way?

    Hi,
    You might want to check the JCDK user guide (cJDK_Users_Guide_bin_do.pdf) for details of using an emulated card environment. It outlines how to use the simulators provided with the JCDK. This should tell you how the deploy process works and will give you some insight into what this script is doing.
    Cheers,
    Shane

  • Java Card Kit - development environment

    Hello!
    I need to upgrade to the latest Java Card Kit, because I need some of the classes in javacardx.framework, which is not supported by version 2.2.1.
    But some problems arises when I'm trying to use version 2.2.2
    1) It requires jdk1.5. Ok, no problem (ehh)
    2) I'm using eclipseME 1.6.0. This requires jdk 1.4.2.
    3) I downloaded WTK2.5 which supports jdk 1.5, but I cannot get this to work properly. This is the error output of WTK when my application tries to connect to the running cref-simulator:
    java.io.IOException: error 10054 during TCP read
    I have not found a solution for this problem yet. But my question is:
    What is the optimal development environment for java card 2.2.2? What kind of MIDlet-emulator and which version are people using together with java card 2.2.2? Is there a eclipse plugin that supports jdk 1.5?
    Regards
    Haavard

    Only cref can create and use EEPROM images.
    You do not communicate with cref via SATSA apdu.... In emulation environment APDU commands are forwarded via satsa-apduio.jar to any process which can accept these commands. It's a pity but you just cannot replace satsa-apduio.jar with apduio.jar from JCDK 2.2.2 (which uses T=0 by default).
    As for my proxy - it's not necessary to include it in your project - it's just an utility to accept T=0 APDU and forward them to smart-card. I think there's need to add new functionality - forwarding T=0 APDUs to other process which accepts T=1. I think it will solve your problem.

  • Access a java card via two logical channels

    Dear all;
    I was wondering if someone managed to do following setup(because it doesn't work for me):
    I have an android phone with a sd-card slot in which I've inserted a java card. I can open a logical channel from my android phone to the java card. Since the java card also suports T=CL, I'm also able to open a logical channel from a pc to the java card via a contactless interface (with a reader that is connected to the pc). But what seams to be impossible is opening the two logical channels simultaniously. So I can't open simultaniously a logical channel from the android phone to the java card and a logical channel via the contactless interface.
    Did anyone have succes with this setup? (I made the applet multiselectable)
    greets,
    JT

    If you are trying to connect to the card over both the NFC controller (card emulation) and the device interface from Android at the same time you will probably have a race condition. On the phones I have used, you can only have one active at time.
    Shane

  • Require java card vendor(s) in india

    hi friends,
    can any body send me java card vendor(s) list plz.

    You can also use OpenCard Framework (OCF) to communicate with the CREF emulator from a host application. You should be able to search the forum for related posts for details.
    It is a very good idea to test against an emulator when developing as it is faster and may allow you to debug your code as well. Just remember that the CREF and JCWDE emulators have limitations. These are described in the documentation that ships with the JCDK.
    Cheers
    Shane

  • SATSA Card Emulator App communication

    Greetings,
    I know that probably this questions has been asked a million of times, but i just cant get it done and i've searched through google.
    I have my midlet with with piece of code:
    private final String slot0ApduAid = "apdu:0;target=f7.22.20.94.5a";
    private APDUConnection apduConnection0;
    apduConnection0 = (APDUConnection)Connector.open(slot0ApduAid);I have my JavaCard Applet loaded into the emulator
       public void process(APDU apdu) {
            byte[] buffer = apdu.getBuffer();
            if (apdu.isISOInterindustryCLA()) {
                if (buffer[ISO7816.OFFSET_INS] == (byte) (0xA4)) {
                    return;
                ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
            if (buffer[ISO7816.OFFSET_CLA] != Wallet_CLA) {
                ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
            switch (buffer[ISO7816.OFFSET_INS]) {
                      .........The problem the midlet never gets to open the connection, like when you open a socket connection and stays blocked up until the other side answer.
    In the emulator i send the list command and it shows me
    listLoaded Bundles/Libraries:
        SatsaCard [Classic Applet Bundle]
    Created Instances:
        SatsaCard: //aid/F72220945A/C0
    >However when i stop the card emulator the midlets shows the following error log:
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: Reset failed
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: javacall_carddevice_reset: can't connect to server
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: Reset failed
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: javacall_carddevice_reset: can't connect to server
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: Reset failed
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: javacall_carddevice_reset: can't connect to server
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: Reset failed
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: javacall_carddevice_reset: can't connect to server
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: Reset failed
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: javacall_carddevice_reset: can't connect to server
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: Reset failed
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: javacall_carddevice_reset: can't connect to server
    [ERRR] [carddevice_simu] CARDDEVICE ERROR: Reset failed
    javacall_lifecycle_state_changed() lifecycle: event is JAVACALL_LIFECYCLE_MIDLET_SHUTDOWNstatus is JAVACALL_OKApparently the midlet did was connected with the card .....
    Also, when i do the following change in the midlet:
    java.lang.IllegalArgumentException: Invalid AIDI dont know what seems to be the problem....

    Hi,
    Thank you in advance for your atention.
    I'm 1 step before you
    my emulator doesn't work because using
    securityElementID = new String("WIM 1.01 SATSA RI");
    midlet emulator return my prompt message and
    on top say
    WIN Application not found
    Did you solve problem?
    please help me
    Thank you again
    Matteo

  • How to run a library in Java Card

    Hi guys
    I have a question related to the running in emulator. Well, I now have 2 separated projects, one is class library and the other is java card applet. Both of them are constructed by Netbeans
    When I build the classic library, it is fine. I have class file, cap file and export file of this package. This is the source code of my class library
    package lib4;
    public class lib4 {
        public short func1(){
            return (short)0x1234;
    }And then, I use this library for the java card applet which is developed onto another project in Netbeans as well. This applet invokes func1 in class lib4. This is the source code of the applet
    package app1;
    import javacard.framework.*;
    import lib4.*;
    public class app1 extends Applet {
        public static void install(byte[] bArray, short bOffset, byte bLength) {
            new app1();
        protected app1() {
            register();
        public void process(APDU apdu) {
            //Insert your code here
            short t;
            lib4 d= new lib4();
            t = d.func1();
            ISOException.throwIt((short)t);
    }However, when I build this applet by Netbeans, the error is "error: export file lib4.exp of package lib4 not found.". I think that's fine if I build them by ANT TASK. Nervertheless, for the sake of emulating, I want to build them onto Netbeans.
    This is the whole result of the build
    init-platform-properties:
    Using JavaCard Platform Definition at C:\Documents and Settings\chandufo\.netbeans\6.9\config\Services\Platforms\org-netbeans-api-java-Platform\javacard_default.jcplatform
    Java Card Home is C:\Program Files\NetBeans 6.9\javacard\JCDK3.0.2_ConnectedEdition (Java Card Platform)
    init-ri-properties:
    init-device-properties:
    Platform device property name is jcplatform.javacard_default.devicespath
    Computed device folder path is C:\Documents and Settings\chandufo\.netbeans\6.9\config\org-netbeans-modules-javacard\servers\javacard_default
    Platform device file path property name is C:\Documents and Settings\chandufo\.netbeans\6.9\config\org-netbeans-modules-javacard\servers\javacard_default\Default Device.jcard
    Deploying to device Default Device http port 8019
    init-keystore:
    Keystore is C:\Program Files\NetBeans 6.9\javacard\JCDK3.0.2_ConnectedEdition/samples/keystore/a.keystore
    build-dependencies:
    unpack-dependencies:
    compile:
    Compiling 1 source file to D:\netbean\app1\build\APPLET-INF\classes
    compile-proxies:
    create-descriptors:
    create-static-pages:
    do-pack:
    Resolved dist.bundle as relative file D:\netbean\app1\dist\app1.cap
    Resolved build.dir as relative file D:\netbean\app1\build
    Packager [v3.0.2]
        Copyright (c) 2009 Sun Microsystems, Inc.
        All rights reserved.
        Use is subject to license terms.
    [ INFO: ] Validating Command Line
    [ INFO: ] Setting packaging information
    [ INFO: ] Package is being created
    [ INFO: ] Converter [v3.0.2]
    [ INFO: ]     Copyright (c) 2009 Sun Microsystems, Inc.
        All rights reserved.
        Use is subject to license terms.
    [ INFO: ] conversion completed with 1 errors and 0 warnings.
    error: export file lib4.exp of package lib4 not found.
    D:\netbean\app1\nbproject\build-impl.xml:205: Creation of D:\netbean\app1\dist\app1.cap was not successful. See Packager output
    BUILD FAILED (total time: 1 second)-->> What can I do now?
    Any kinds of help will be appreaciated.

    First things first.
    Do you know how to compile a simple hello word program, get it to compile, and run it in jbuilder? Do you know how to do other basic programming tasks (ignoring iADF for now) in the IDE? If not, you need to concentrate on how to use jbuilder before messing with Oracle ADF (Oracle Application Development Framework). Alternately, if you are very familiar with another IDE such as Eclipse, you can look at ADF plugins for it instead (if they exist). If you are not familiar with Java, its supporing technologies, and an IDE very well, I suggest you drop ADF and work on simpler architectures because ADF is way, way too advanced for you at this time. Instead, spend your time reading books on Java, etc from cover to cover and working through a number of their examples instead.
    Assuming you are an experienced programmer and plan to go ahead with ADF, I suggest you go to amazon.com and order a book on ADF that has good reviews. Read it from cover to cover and work through a number of the book's examples. You should start out with a very very simple ADF project before attempting something more complicated, then build on it. If you are not familiar with some of the components of ADF such as JSF, I suggest you create a few simple projects using them in isolation before combining them all under ADF.

Maybe you are looking for