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

Similar Messages

  • J2me and java card, need help to communicate

    we are trying to put together a reader to read smartcards using j2me and we figure that it would be easiest if we could develop it to work with java cards rather than standard smart cards, the problem is we get garbage when we communicate to it, the chip sends us crap, any suggestions what might be wrong, any calls we might be missing, has anyone worked with j2me and java cards or smart cards, any help would be appreciated.
    einar

    .... reader app and the ME behind it .... smells like mobile ....
    First of all - if you want to have one mobile application running on this just make sure that whatever is written in ME can use drivers from the reader chip ....
    Workin on the PC is something completely different. There was one good example how to develop one host application in Java provided with the JCOP tools long ago ... I don't know if this is now in the new Eclipse tools.
    But - there was a small API provided that can give you good hints what to do - and - once you have it on the reader side - you can easily integrate ME methods with this ...

  • Differences between Java Card 2.1.1 and Java Card 2.2

    Hi guys, how are you?
    My name is Érica and I’m taking Electric Engineering and I love mobile communication.
    I’m reading a PDF about SIM cards for cellular networks and I have a doubt that is “killing” me!
    What is the most relevant differences between Java Card 2.1.1 and Java Card 2.2?
    Could you please help me?
    Best regards.
    Thanks in advance.
    Érica Borsato de Souza Lima – Rio de Janeiro/Brazil

    2.2.x API will be more complete than 2.1.x, just compare the javadocs and specs.

  • Java ME SDK 8.0 EA Netbeans plugin installation problem

    We have been getting reports that some developer had trouble installing the Java ME SDK 8 EA plugins into NetBeans. We are working on fixing the issue, in the meantime please try the workaround posted in the Java ME SDK forum:
    Java ME SDK 8.0 EA Netbeans plugin installation problem
    Also be sure to check the latest ME SDK 8 EA Release Notes for late-braking information:
    http://docs.oracle.com/javame/dev-tools/jme-sdk-8/release-notes/html/Release_Notes/Release_Notes.html
    Sorry for the inconvenience.
    Best,
    -- Terrence

    Hi,
    For the Raspberry Pi, tooling over serial port is not supported. The simplest solution is to use standard IP networking over Ethernet. This can be a direct connection between the PC and the Raspberry Pi, as long as the cable is twisted and the IP addressing is correct (e.g. manual IP addressing or DHCP server on the PC).
    Regarding "Connecting to a UART Device": This is meant for attaching and controlling serial devices from the Raspberry Pi, not for tooling connections between the Raspberry Pi and the PC.
    Hope this helps,
    -- Terrence

  • Java Card SDK problem

    Hello,
    I have downloaded :
    *>java_card_kit-2_1_1-unix.tar.Z
    I am using Linux Mandrake 8.1 and j2sdk1.4.0_01.
    After installing and setting env vars I tried
    to run "jcwde" but it returned with:
    *>Error: native VM not supported
    I didn't find a linux specific download but I guess the unix download should work?!
    If the error comes because of wrong download, does anybody knows if there is one
    for Linux?
    thank you,
    John

    I find it hard to beleive that the kit didn't come with a README since I'm reading it right now !
    This is taken directly from it.
    Java Card 2.2
    " Supported Platforms
    * Windows� NT 4.0 with Service Pack 6
    * Solaris� 8 (SunOS 5.8) Operating Environment (SPARCTM platforms)
    Java Development Kit: Java2 SDK, Standard Edition (version 1.3) "
    Java Card 2.1
    Supported Platforms
    o Windows NT 4.0 with Service Pack 4
    o Solaris(TM) 2.6 (SunOS 5.6) Operating Environment (SPARC(TM) platforms)
    o Solaris 7 (SunOS 5.7) Operating Environment (SPARC(TM) platforms)
    o Solaris 8 (SunOS 5.8) Operating Environment (SPARC(TM) platforms)
         Java Development Kit: Java2 SDK, Standard Edition (version 1.2.2 or 1.3)

  • Cannot find java card sdk 2.2.1 on oracle

    Hi,
    i have a java card support 2.2.1, but the problem is that I cannot find the sdk 2.2.1 on oracle release. It only provides download of 2.2.2 and 2.1.2(not linux). Does any one know why they don't provide sdk 2.2.1 and where to find it? thanks!
    best regards
    Edited by: 934624 on Jul 5, 2012 12:42 AM

    JCDK 2.2_01 for Windows: how to start java card development?

  • Smart Card and  Java Card (URGENT)

    Dear everyone.
    I have purchased a card reader (which is supposed to be java card compatible).
    I have 2 problems.
    1. I just wonder if i can use a Smart Card generally available. Do i need to have a special card for Java Card??
    2. Can i use card kit to interface to the reader/writer? How do i install my applets??
    Please reply soon.
    Thank you very much.

    I tried to execute the OCF samples.
    this code
    OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory
    did not give any trouble
    this code
    OpenCard.terminals = com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminalFactory
    gave some troubles. May be because iam not using ibm terminal(card).
    And also, i think the OCF samples will not work anyhow, because the Reflex reader is not OCF complaint.
    So the following may not work
    OpenCard.services = com.slb.opencard.Cyberflex
    I have most imp. questions to ask you now.
    1. What card should i purchase and from whom (along with some software if necessary)?
    2. What is the procedure for reading/writing to that card using the Reflex reader.
    Please help.
    Thanks
    Goldy.

  • Filepath probs running Java w/ DOS and Java 2 SDK

    Please help! I have been trying to get a .class file to run for the past four days, using DOS to run the file. I have tried to enter every filepath I can -think- of, and the program still will not run. I have even tried running the file on others' computers that also have a Java 2 SDK...and still cannot get the file to run. However, I know for certain that the file is correct and is able to be run....so that means that somehow I am not putting in the right filepath. I guess my question is....what's the file path?
    Here's what I was told to do...which has not worked thus far...
    My Java SDK filepath is: C:/Java2SDK1.4.0
    I was instructed to open DOS, then, to get to here:
    C:\Documents and Settings\Administrator\Desktop>I did so, and as instructed entered the filepath to the javac file inside the java sdk and after it, to put the filename with a .java extension. However, I ONLY have a class file. I don't have the .java file, nor was it ever handed to me.That filepath requested is: C:/Java2SDK1.4.0/bin/javac MathPrac.java
    I entered the filepath, so my DOS prompt looked like this before I hit the enter key:
    C:\Documents and Settings\Administrator\Desktop>C:/Java2SDK1.4.0/bin/javac MathPrac.javaI hit enter, and it gives me a LONG list of garbage. I even tried reversing the slash marks. Please help? This thing is due Monday and my instructor is refusing to return my emails. I don't want to fail this course due to an instructor being unwilling to assist a student, and a student having tried just about everything she could think of before finally coming here and asking for help.
    Would it matter if the SDK for some reason won't recognize my .java files either? I even tried doing the filepath with a file I KNOW should work...and on computers it should have worked on...and could not get it to accept my filepath.
    Any help would be very very very highly appreciated. Thanks!

    Author: philip_ross
    To run a .class file you have to use the java command (javac is the compiler which creates .class files from .java files). Try running
    C:\Java2SDK1.4.0\bin\java MathPrac
    Thank you for the suggestion, however when I attempted to run it, I got an error that said: Exception in thread "main" java.lang.NoClassDefFoundError: MathPrac
    Isn't this an error that states that the name of the file and the class name inside the file are not the same? And if so, how can I check to see if they are the same if I don't have the .java file? I did double-check my spelling, tried it four times just to be sure.
    To ChuckBing:
    Hey, thanks for the tutorial! I'll take a look at that, too. It always helps to have other resources.
    To jwenting:
    <Grin>. Duly noted, and thanks. I was trying to keep from being -too- technical in my explanation of what was going on.

  • EclipseJCDE and Java Card 2.2.1

    Hello all :)
    I need to use Java Card 2.2.1 for Nokia 6131 but my Eclipse IDE only accepts Java Card 2.2.2. Is there anyway that I can get the EclipseJCDE to work with JC 2.2.1 ?
    I need to do this because when trying to upload the .class into the Nokia 6131 emulator's virtual secure element it won't take it and I get an error, I figured the reason is that I'm using a newer version of Java Card.
    Is there any other way that I can test my app.'s behavior, meaning testing how the applet and MIDlet interact?
    Thaaaaaaaaank you in advance for any help
    :)

    Hi,
    I assume you are only using the Eclipse plugin to generate CAP files to use in the Nokia emulator? If so, you can just use Eclipse to compile your classes (using the JCDK 2.2.1 libraries and Java 1.3 as the compilation target) and then use the command line CAP file converter from JCDK 2.2.1 to create the files you require.
    Cheers,
    Shane

  • ANT tools and java card

    Hi,
    I used the ant tools going with the java card development kit 2.2 and I have the following errors when I run the build.xml
    testinit:
    [apdutool] Java Card Ant Tasks, Version 1.0
    [apdutool] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [apdutool] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
    [apdutool] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/javacard/apdutool/Main
    If you have ever had this error, can you help me please to solve it?
    Thanks in advance.

    Hi,
    You are missing a JAR file. Check to make sure you have your classpath setup in your build file with the required libraries.
    Cheers,
    Shane

  • What is different between JES and Java EE SDK ?

    Hi
    Thank you for reading my post.
    can some one tell me what is different between Java EE SDK and JES ?
    What i think is:
    - Both of them support Java EE 5.0
    - Both of them has access manager 7.1
    Can we develop application on JES using netbeans IDE ?
    What technicall benefits JES bring that Java EE SDK does not?
    Thanks

    The Java EE SDK is a developer kit that includes Application Server 9 PE,
    as well as early access to other technologies and tools related
    to Java EE 5 development. It is primarily targeted at developers
    for doing development and prototyping -- although you can also
    use it in production.
    Java Enterprise System is a larger integrated stack of software and
    services sold under a subscription model. The current release includes
    Application Server 8.2 EE (and is therefore J2EE 1.4 based), but also
    includes a large number of other products such as Web Server,
    Directory Server, Portal Server, etc. For more details see:
    http://www.sun.com/software/javaenterprisesystem
    Note that it is an unfortunate co-incidence that the current release
    of Java Enterprise System is Java ES 5, which has nothing to do with
    Java EE 5!
    Yes you can use Netbeans to develop applications for Java ES.
    So comparing the two is really comparing apples to oranges. If you
    are a developer and want to develop Java EE 5 applications than the
    Java EE SDK is likely best for you.
    If you are interested in a broader portfolio of software and servcies
    including deploying J2SE 1.4 applications than Java ES may be a good
    match.
    Joe

  • JCOP and Java Card Reference Implementation

    Hello,
    is it possible to use the JCOP tool to debug or run an applet not on only on the simulation of the JCOP cards, but also on the Java Card Reference Implementation?
    If yes, how can I do it?
    Thanks

    That would be interesting to see. I don't think it would be benefcial, simply because the JCOP uses additional features that aren't found in the JCREF, like Global Platform. Therefore, your applet downloads wouldn't work because of the difference in APDU commands. Also I don't know how the IDE debugging would handle it.
    I'd like to see if JPCSC can work with JCREF for sending APDU commands.

  • Diference between Java Card Operating System and java card?

    operating system is inside the ROM, but are the JCVM, APIs and JCRE inside this ROM too?

    Even if you found it, how are you going to get the cards ? How will you get the tools to put the JCRE/JCVM into ROM and start it ? What about the card OS and native methods ? How are you going to engineer that ?
    The cost of all that outweights the benefits of just purchasing the cards already loaded !
    Just my 2 cents

  • Java Card Development Tool and Cards.

    Hello all,
    I'm thinking to purchase some Java Card Development Tools and Java Cards.
    Could you guys recommend any?
    Now I'm checking the Schlumberger's Cyberflex Access SDK. If I buy this, which card do I have to choose? 'Cyberflex Access Developer Card'?
    Howabout Gemplus? Oberthur? or G&D? and anything else?
    I look forward to hearing from you guys,
    Thank you.
    Julie.

    A list of Java Card development tools is available at http://wireless.java.sun.com/allsoftware/index.html#jcardtools

  • Java card 2.0 and JDK 1.3

    Hi all,
    Is java card 2.0 compatible with JDK 1.3? I have JDK 1.3 and java card 2.1 on my machine. But I have just realized that the card I have (Schlumberger's Cyberflex Access 16K cards) only support java card 2.0. So now I have to re-setup everything. Just wondering if I need to get a different JDK too?
    Thanks!

    You will need SLB Cyberflex kit for the 16k cards anyway because of the filesystem. Not to mention I don't think their latest kit, 4.3 TRUELY supports JC2.0 even though the docs says it does. Which means you might have to find a way to purchase the V3 kit because JC 2.0 isn't available here anymore.
    Also remember this, Cyberflex 16k, doesn't contain Global Platform implementation.

Maybe you are looking for

  • External Hard Drive won't stop sleeping

    This is really frustrating me. I have my settings unchecked to allow hard disk to sleep, also my computer is set to never sleep. However whenever I try to access my external drive, I always have to wait several seconds for it to spin up. It's as if O

  • Can not boot from Mac OS X Install Disc 1, G5, Snow Leopard

    I have version 10.6.8 installed. Compter is a 2 x 2.66 GHz Dual-Core Intel Xeon. 6GB memory I want to run Disk Utility and startup from the install CD that came with the computer (the grey one, disc 1, or even the retail disc Mac OS X Snow leopard, t

  • Problem in moving files from LR4 to Photoshop CS5

    I have recently upgraded from LR3 to LR4. I have not changed my workflow between LR and PS. However, when I try and open a file I'm working on in LR4 in PS using "Command + E", a dialogue box appears stating "The version of LR may require the Photosh

  • Cant boot after installin OS X

    Just got a Power Mac G4 Tower. I installed OS X, everything looked fine but when on the restart it got stuck on a grey screen with a broken folder icon. What does this mean and how do I fix it? Please help.

  • Unable to register a managed account

    hi, when i tried register a managed account in my central admin, i am getting error "Requested registry access is not allowed. " may i know how to resolve this error. i have full control on my sp server which has windows server 2012,  sp 2013, vs 201