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

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.

  • 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.

  • 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

  • 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

  • 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 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.

  • Choosing java card and jcdk

    hi all,
    we are planning to use java card for our project.can you suggest a java card development kit and java card which are appropriate for beginners?also
    what are the required tools for developing applet on the card and host side applet(that resides on pc) that communicates with the card?

    I bought a few of them in past but didn't work together. Not sure it is reader or card's problem. Do you think those two work together?
    http://www.usasmartcard.com/component/page,shop.product_details/flypage,shop.flypage/product_id,138/category_id,10/manufacturer_id,0/option,com_virtuemart/Itemid,26/
    and
    http://www.usasmartcard.com/shop/java-card_20/10404_137.html
    Thanks

  • 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

  • The version number of export file in Java Card 2.2 is not correct

    Hi all,
    I used jdk1.3.1 and java card 2.2's exp2text tool to see the content of an export file. The value of minor_version is 1. But the JCVM 2.2 spec. says it should be 2. So which one is correct?
    Joey

    Read my post again....indicate binary compatibility or incompatibility between successive implementations of a package.
    I can gerenate CAP files generated with JC 2.2., and load onto my JC 2.1.1 cards. AS LONG as I'm not using JC 2.2 implementation.
    Run the exp2Text on javacard.framework.service and notice that it should read minor = 2. That's because to use that export, JC 2.2 is minimal required implementation.

  • Java card simulation

    i have to simulate the java card applet which is doing all crypto functions and
    then i will communicate to it by WTK SATSA using eeprom image of the java card applet..
    i don't have to install it on card, i hv to simulate everything..
    is there a way to do it... or we need a licensed tool for it..
    does WTK 2.5 cref and java card 2.2.2 cref will be able to communicate..
    please help, i need this info. urgently

    Are you referring to a Floppy diskette drive ?

  • How do I communicate a Java Card applet with a server?

    I'm new to Java and Java Card and currently developing a smart card system. I'm not sure what to use on my applet or server, JCSystem or SecureConnection or something else?
    If I'm writing a server application, then how do I install it so that I can simulate it with cjre?
    Thanks in advance.
    p/s: Connection is using TSL.

    The flow is like this:
    Java Card --> POS terminal -> Server
    Yes. I'm using JC3.
    Here's what I've achieved so far using SocketConnection
    SocketConnection sc = (SocketConnection) Connector.open("socket://localhost:50007");
    InputStream is = sc.openInputStream();
    OutputStream os = sc.openOutputStream();
    os.write("Hello world!".getBytes());
    is.read(buffer);
    os.close();
    is.close();
    sc.close(); Edited by: andirady on Dec 4, 2012 11:59 PM

  • How to improve the performance of java card OS?

    Hi All,
    we are into Java card OS developement. We need some tips for performance improvement of OS.
    1. what are the possible calculations we can do during loading so that we show good performance during operational mode.
    2. Tips in bytecode implimentation.
    Thanks

    Dear Friend,
    Performance term has relative character in Java Card implementation because there is no etalon. CREF is PC simulated software and can not be used for measurements. So for determining card performance only another implementation comparison can be suggested. Few things should be taken in account while card implementation comparison.
    1. Measurement is done by analysis of time consumption by the card to perfrom a command starting from data transfer and ending by status code.
    2. Same bytecode should be used in both samples.
    3. Same transmission rate should be used.
    4. Analysis of similarity of hardware including CPU, persistent memory programming time
    5. To perform that kind of measurement special tool listeting to terminal-smartcard interface is required
    I have no tips to bytecode implementation because bytecode is a thing that is determined by same Sun compiler and Java Card converter. So all are in the same conditions.
    Yours sincerely
    Dmitri

Maybe you are looking for

  • Basics of servlets

    Hi friends..... i have all basic knowledge of servlets but I am finding difficulty in running it on servelt... my problem is with XML file where we provide Servlet-mapping information and all other information about servlet.... can any one please pro

  • Issue logging into Gmail

    I have a MacBook Pro with the current software and a new iPhone 5S.  I use both to access and use several Gmail accounts (personal and business). Both Mac and iPhone Gmail were working fine until I started to get a login error message, "Username or P

  • Flash banner on website wont load until browser is refreshed??

    I am having this problem on a website where the flash banners for each  page wont load in any browser until you either refresh F5 the page or  try re-clicking the page nav links a few times. Once loaded they are fine, but if browser's cache is cleare

  • About triggering Idocs and RFC methodology

    Created FM to trigger the IDOCu2019S, to the requesting legacy systems, which has triggered this before by the RFC methodology from above question exactly can u tell what is process going on over there. what is RFC methodology,how can we create RFC f

  • Useing Excel Function NORMSINV() in BEx

    Hi All, I am having a requirement where i have to generate a Query like below. Plant | Service Lvl | Cost | Time | Deviation Z (Service Lvl) = Should be calculated based on FUNCTION NORMSINV(Service LVL), the service level percentage they enter in se