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.

Similar Messages

  • Java Card Applet Development, Testing, Loading in Eclipse 3.2.0

    Dear friends,
    1.
    we have installed Eclipse 3.2.0, activated JCOP Tools 3.1.2, installed Java Card 2.2.1 devepment tools..
    2.
    How we can start testing and loading the java applet into JCOP31 chip ??
    3.
    It's said that we should use Java Card Workstation Development Environment (JCWDE), but we can not find it in the eclipse .
    4.
    Where we can find Eclipse menu for the
    -Converter tool
    -APDU Tool Utility
    -Java Card Workstation Development Environment (JCWDE)
    5.
    is there any resource/web/link that contains Eclipse tutorial on this Java Card Development ???
    Tks,
    hendy

    1. Good.
    2. I suggest you start testing using the simulator, however if you want to test directly on the card at once, select your card reader using the /term command and use the commands as described in help to start sending APDUs to the card.
    3. This is not a part of the JCOP tools for eclipse (which is developed by IBM and maintained by NXP), but part of the JavaCard development toolkit developed and maintained by Sun. See http://java.sun.com/products/javacard/dev_kit.html.
    4. Read the above. None of this is part of JCOP tools for eclipse.
    5. As far as I know, there is no independent newbie guide for JCOP tools, but I would check out the help function included in the tools themselves if I were you.
    Good luck!

  • Step by step installation for java card kit 2.2.2

    can anyone help me with a complete step by step installation information for java card kit 2.2.2, i already tried to follow the instruction given in the software i download n still stuck in setting the java path. any recommendation
    thanks for the help

    The javacard API is for developing applets on card. Java 6 is for developing clients off-card.
    yes u can use any java IDEs like netbeans or jcreator. But you will have to select the libraries within the downloaded java card kit folder for ur IDE in order to compile successfully.
    try reading up the documentation and run the samples in the java card kit. thats a good place to start.

  • Where is the built in Java runtime and development environment in my MAC???

    I keep reading that my macintosh (dual G5 with OSX 10.4.10) came with a fully configured and ready-to-use Java runtime and development environment, however I cannot find, nor do I know how to open it. Doe anyone know how to open this up? thanks so much!

    Your JRE should already be configured so that when you double-click a self-executing jar or open a page with an Applet it will run.
    Your compiler (javac) should be available through your sheel in your terminal application.
    If none of this helps you (and it may well not) you may want to consider installing an IDE. Eclipse for example has a Mac OS version, I am sure there are others but I do not develop on Mac so I can't tell you about them.
    http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/20071103/eclipse-java-europa-fall2-macosx-carbon.tar.gz

  • Java card kit

    hello,
    i am studing informatic ingeeniering and my project is about java card,
    could anyone tell me wich is the most indicated kit to emulate an application just to show how a card works with digital signature and RSA cryptography ?
    u have downloaded the java card kit, but it does not implement cryptography, isnt it?
    i have seen something about JCOP.i think it may be what i need, but i am from spain and i dont know how much time i am going to be waiting for the kit.Could you tell me if its really good for the tasks i want to implement?
    thank a lot,javier

    The new kit does ! I haven't played with it yet, but according to the release documents it states which algorithms it supports !

  • Java Card Applet Development

    Please I am doing my final year project on secure mobile application using Java Card Technology.
    I need to write and an application that can send SMS on a SIM card to another SIM card with the same application. The application will have a server side which manage the storage of messages and at the same time communicate information to the client on the SIM remotely. I am suppose to use wi-fi (TCP/IP) for transmission.
    Can anybody please give me ideas and possible working codes and simulators.
    I mean step by step procedure of how to start.
    THANK YOU.

    1. Good.
    2. I suggest you start testing using the simulator, however if you want to test directly on the card at once, select your card reader using the /term command and use the commands as described in help to start sending APDUs to the card.
    3. This is not a part of the JCOP tools for eclipse (which is developed by IBM and maintained by NXP), but part of the JavaCard development toolkit developed and maintained by Sun. See http://java.sun.com/products/javacard/dev_kit.html.
    4. Read the above. None of this is part of JCOP tools for eclipse.
    5. As far as I know, there is no independent newbie guide for JCOP tools, but I would check out the help function included in the tools themselves if I were you.
    Good luck!

  • How to run Java Card Program in a Simulator

    I m Narendra Reddy studying in India and have taken Java Card for my B.E. final year project.
    i also acquire knowledge of Whole Java Card Development Life Cycle but i found much more difficulties to implement those ideas into java card.
    so, Will you please do me a favour and give me a complete solution if possible with an example.
    i also want each step with the commands, from the creation of Class file to the running of prog. in simulator.
    it will be very useful for me to head towards my project.
    Thank you,

    Just for the record,
    Since we are looking at different possibilities, there are couple of ways to achieve simulation/testing environment for current Java Card,
    1. "The Java Card Workstation Development Environment(JCWDE) tool allows the simulated running of Java Card applet as if it were masked in ROM. It immulates Card environment." Although, as Joe mentioned, it does not support;
    - package installation
    - applet instance creation
    - persistent card state
    - firewall
    - transactions
    - transient array clearing
    - remote method invocation
    - applet/package deletion
    Thus you can use 'jcwde' tool in combination of apdutool to test some
    of the Applet behavior(& JCRE) but not all. You have realized this when you tried 'sample' applets.
    2. JCDK2.2 also provide c-reference implementation of the Java Card. This(cref) is more robust way to test Applet. Although the catch with this is that Sun does not have SCSL(Community Source Licensing) program for Java Card(alas!) and this means you can not mask your applet into this reference implementation unless you get hold of source code somehow(source licensing is one(costly) way)
    3. Buy reader/card and figure out how to install applet for
    testing purpose.
    4. Buy kit from JC vendor containing reader/software/cards and use it
    (costly and hard to find JC2.2 implementation)
    1 and 2 are easier but not a real life solution(how many cards with intel/sparc processor anyway?). 3 and 4 are ideal but other way challenging. Yes, probably solution-1 is the right for your purpose.
    regard,

  • Manually upload .cap file on a java card

    Hi
    I wonder how to manually upload a .cap file on a java card. I do know that it must be an or more APDUs that contain the file and so on.
    What I wonder is how to convert a .cap file into a byte array (byte array that on-card installer can read and understand) without using JCOP or any other tools? Does (must) this array have a special format or something?
    I am interested in the process of taking a.cap file and convert it to byte array (nothing else).
    Thanks in advance!
    /Lyudmila

    The .cap file uploading mechanism depends if you have a java card or a GlobalPlatform card.Java Card cards are GlobalPlatform based.
    If you have a java card you can use the same mechanism that it is used with Cref (see Java Card Kit - Development Kit - Chapter 11): .cap file is divided in n apdus, one or more (if a component not fit in one apdu, for example method component) for component (first:Header.cap, second:directory.cap, third:import.cap, etc).
    If you use a GlobalPlatform card, the mechanism is more complex:
    first you have to create a session using a specific protocol (SCP01, SCP02, etc) through INITIALIZE UPDATE and EXTERNAL AUTHENTICATE commands, then an INSTALL FOR LOAD command and n LOAD commads as they are necessary.
    To use GlobalPlatform mechanism, see GlobalPlatform Specification 2.1.1.The JCRE spec does not define the applet loader and CREF has a basic version of an applet loader that is not GP compliant, but this is not the Java Card standard. To load onto any physical Java Card you will need to follow the GlobalPlatform specification.
    - Shane

  • Running the Java Card 2.1.2 Development on win98

    Hi,
    I just installed the Java Card(TM) Development Kit Version 2.1.2 on my windows 98 OS with jdk 1.3.1.
    I set all the Environment Variables for Windows.
    I also compiled the demos, but I'm unable to run the apdutool. I get a "Bad command or file name".
    I read in the readme file that one of the Supported Platforms is Windows NT 4.0 , but it doesn't say windows 98, can this be my problem ? do I have to reinstall my computer with window NT to develop a java card applet ? can I use windows 2000 ?

    Hello.No, there is no need to test this toolkit under Windows 2000.It supposed that this packages is working under Windows 98.
    I think the problem is that you did not set right the PATH and CLASSPATH of the JC 2.1.2 in the autoexec.Try the followings(see if it is working):
    ///PATH
    set PATH=c:\jc212\bin;%PATH%
    if the jc212 is the directory that you installed this package.
    ///CLASSPATH
    set CLASSPATH=%CLASSPATH%;C:\jc212\lib\api21.jar
    set CLASSPATH=%CLASSPATH%;c:\jc212\lib\converter.jar
    If you still have problems try to add te following line in the autoexec.bat
    set CLASSPATH=%CLASSPATH%;c:\jc212\samples
    I think this will help you.

  • Step by step approach to develope the java card application

    Do anybody know how to develope a smart card application using java card.i have downloaded java card kit,but the documentation provided by the sun is bit complex to use.
    so please anybody know how to proceed?
    It would be appreciated if i am given a step by step approach to develope a smart card application using java card.

    Do anybody know how to develope a smart card
    application using java card.i have downloaded java
    card kit,but the documentation provided by the sun is
    bit complex to use.
    so please anybody know how to proceed?I would suggest to read these articles
    http://developers.sun.com/techtopics/mobility/javacard/articles/
    Jan

  • Java card technology question

    Hi all
    Im new to the java card technology. I've downloaded and installed the java card kit and tested the demos on the virtual environment. I have the towitoko card reader, downloaded the cttwkw32.dll, but i dont know how to communicate with it.
    Can pls anyone tell me what steps should i follow in order to be able to communicate with the reader? is there any IDE for building such applications (except for the eclipse and the jcop toolbox)?
    Thanks in advance.

    javacard.framework is defined in a jar file, supplied with Java Card Development kit from here: http://java.sun.com/products/javacard/downloads/index.html
    As for
    import sim.toolkit.*;
    import sim.access.*;
    This question is already discussed here:
    http://forum.java.sun.com/thread.jspa?forumID=23&threadID=240703

  • Java card how to begin

    Hi all
    Im new to the java card technology. I've downloaded and installed the java card kit and tested the demos on the virtual environment. I have the towitoko card reader, downloaded the cttwkw32.dll, but i dont know how to communicate with it.
    Can pls anyone tell me what steps should i follow in order to be able to communicate with the reader? is there any IDE for building such applications (except for the eclipse and the jcop toolbox) or how could i get the jcop tools?
    Any answers would be gratefully appreciated

    Hi picateclas
    After a lot of googling and reading loads of papers i abandoned the idea of jcop toolbox. This is an abandoned project and there is no way (as far as i know) to download it.
    I adopted the alternative of a java framework and OCF(abandoned too), JACCAL, JNI2ctapi are such frameworks. I installed, configured and tried each one of them and finally decided to use jaccal.
    Jaccal is available at http://jaccal.sourceforge.net/ but unfortunately there is not even the slightest information about the project (no manuals, no specifications) so you will have to try by yourself each class to find out its functionality. With jaccal i have been able so far to connect with the reader, to inspect whether there is a card or not inserted, or when the reader is used by another program, but not to read the card or write to it.
    You may have a look at a code sample here: http://forum.java.sun.com/thread.jspa?threadID=5258822&tstart=15 to see what i mean.
    (Substitute the jaccalPcsc.connectCard(readers[0], PCSC.SCARD_SHARE_DIRECT, PCSC.SCARD_PROTOCOL_T1)with the jaccalPcsc.connectCard(readerList[0], PCSC.SCARD_SHARE_DIRECT, PCSC.SCARD_PROTOCOL_UNDEFINED); when you try the code)
    I am now developing the rest of the functionality of my project as i had been stuck to the not transacted card exception, which i will have to face later.
    Have a go at it my friend and let me know.
    Good luck
    Dont forget to mention:
    As for the IDE i use the NETBEANS 6.0. It has all the functionality a code developer needs
    regards
    evsav

  • Step-by-step Java card

    Does anyone can tell me how to program Javacard Step-by-step....and what tools we can use to program it.
    thanks...

    Do anybody know how to develope a smart card
    application using java card.i have downloaded java
    card kit,but the documentation provided by the sun is
    bit complex to use.
    so please anybody know how to proceed?I would suggest to read these articles
    http://developers.sun.com/techtopics/mobility/javacard/articles/
    Jan

  • Why do we need IDE or tools for java card programming?

    Hi,
    I am a newbie to java card, using java card kit tools themself, we can test and burn the code into card right?
    then why do we need IDE for java card, please correct me , if i am wrong,
    Thanks in advance,
    Sri.

    Dear Sri,
    We have compiler, linker etc for every language starting of from C or C++ or Java. JDK has all the tools necessary to develop and run a Java program. Similarly Java Card Development Kit has all the tools for developing and deploying a Java Card applet. But what an IDE does is too integrate all these tools and make it easier for the JavaCard programmer to develop his applets. Just like Eclipse is used for Java applet development.And not everytime the code is burned to the card. Its only during masking code is burned to the card, i.e if u can call it burning. Masking makes an applet permanent on the card.

  • Java Card-Help Please

    I work with J2SE 1.4.2 and I need to know if JAVA CARD KIT 2.2.1 can be
    used in this to developing aplications.
    I work with tool J2SE 1.4.2 and need to know if tool JAVA CARD KIT 2.2.1 can be used to develop applications in J2SE 1.4.2.
    Thanks

    What is Java Card Kit? Does it have a website? Have you looked it up there? Have you tried it?

Maybe you are looking for