NetBeans java card platform

Dear All,
I need a java card simulator to debug my java card applet code.
I try to use Java Card Platform on NetBeans IDE 7.1 for debugging purpose. After successfully building the applet and loading it onto the simulated card environment I try to select the applet instance using the following command through the Console.
select //aid/3F564379F5/00279CD982
in response I receive the following error.
"Connection reset by peer: socket write error"
Is anyone using Java Card Platform for debugging? I would be very happy to hear how to resolve this problem.
Thanks in advance!
Cheers!
Mehmet

Mehmet wrote:
Hello Rohit,
If you download the Java Card Development Kit (http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javame-419430.html#java_card_kit-2.2.1-oth-JPR)
you will have a set of sample java card applets to use.
You can use JPShell to download the cap files(compiled applet) onto the card and send ADPU to the card to see if you get correct response.
Following link provides all the information to set up the environment and start developing java card applets using NetBeans IDE and GPShell.
https://minotaur.fi.muni.cz:8443/~xsvenda/docuwiki/doku.php?id=public:smartcard:javacardcompilation
I hope this can help.
MehmetI already have , Netbeans 7.1 and now i have gpshell 1.4.4 ,i think netbeans is capable to making .cap file, did you mean that with use of gpshell i can connect with java card through reader? gp shell would work stand alone or we need to set this to netbeans? i read the link which u passed to me, it seems very good but "it seems very tough to implement" . HELL IS WAITING FOR ME... KIDDING DEAR,
one last thing, anything other than net beans { here we create applet and it automatically create cap file} and gp shell are require to load applet onto the card? OR these is enough to implement wholo java card application- I asked this because i get the term JCOP and etc when i read uploading applet to card.
anyways thanks for your help.

Similar Messages

  • !!Help!![Java Card Platform]Off Card Installer[v3.0.2]Create failed: null

    I newbie used NetBeans to simulator Java Card Platform, and newbie for Java Card.
    I take VERY simple sample HelloWorld and add several lines:
    and launch build.xml with run task.
    all stages goes well, compiling, packaging, loading to simulator, but creation failed!!!!
    import javacard.security.RandomData;
    public class HelloWorld extends Applet {
         private RandomData Rnd ;
         protected HelloWorld() {
              Rnd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
              register();
         public static void install(byte[] bArray, short bOffset, byte bLength) {
              new HelloWorld();
    build.xml(Create-Instance)
    OffCard Installer [v3.0.2]
        Copyright (c) 2009 Sun Microsystems, Inc.
        All rights reserved.
        Use is subject to license terms.
    [ INFO: ] [Creating an instance of HelloWorld with instance ID //aid/A000000062/03010C0101 on http://localhost:8019/cardmanager/]
    [ INFO: ] "Off Card Installer validating create information"
    [ INFO: ] "Off Card Installer preparing create information"
    [ INFO: ] "Off Card Installer sending create request"
    [ INFO: ] Create failed: null
    When I remove this line,
    //Rnd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
    then OffCard Installer will operation completed successfully.
    [ INFO: ] Operation completed successfully.
    WHAT I'm doing wrong?
    Someone can help me!!

    I newbie used NetBeans to simulator Java Card Platform, and newbie for Java Card.
    I take VERY simple sample HelloWorld and add several lines:
    and launch build.xml with run task.
    all stages goes well, compiling, packaging, loading to simulator, but creation failed!!!!
    import javacard.security.RandomData;
    public class HelloWorld extends Applet {
         private RandomData Rnd ;
         protected HelloWorld() {
              Rnd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
              register();
         public static void install(byte[] bArray, short bOffset, byte bLength) {
              new HelloWorld();
    build.xml(Create-Instance)
    OffCard Installer [v3.0.2]
        Copyright (c) 2009 Sun Microsystems, Inc.
        All rights reserved.
        Use is subject to license terms.
    [ INFO: ] [Creating an instance of HelloWorld with instance ID //aid/A000000062/03010C0101 on http://localhost:8019/cardmanager/]
    [ INFO: ] "Off Card Installer validating create information"
    [ INFO: ] "Off Card Installer preparing create information"
    [ INFO: ] "Off Card Installer sending create request"
    [ INFO: ] Create failed: null
    When I remove this line,
    //Rnd = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
    then OffCard Installer will operation completed successfully.
    [ INFO: ] Operation completed successfully.
    WHAT I'm doing wrong?
    Someone can help me!!

  • Is the Java Card Platform supports the unnamed package?

    1.agree
    Virtual Machine Specification for the Java Card� Platform, Version 2.2.1 chapter 2.2.2.1:
    "packages in the Java Card platform are used exactly the way they are in the Java platform."
    That means the Java Card platform also have two type package,named package and unnamed package.
    2.against
    Development Kit User�s Guide for the Java Card Platform, Version 2.2.1 chapter Running the Converter:
    "Command line usage of the Converter is:
    converter [ options] <package_name> < package_aid> < major_version>.
    < minor_version>"
    The above formula tells us that the <package_name> is a MUST Line Arguments of converter.But if we create a unnamed package,how should we express it?
    3.against
    first,How a real JCVM intall/organize the unnamed packages?
    second,In a real JCVM run-time environment,all java items(include attribute,method and soon) refered by the suit of package+class+item.In this condition,the item in a nunamed package cannot offers the package and is never refered.
    I have been botherd by the above 3 boresome and opposite points for some time and cannot give out the key of the question.
    Can some one give me some ideas?
    thx!

    Sun's kit is free. There is a reference implementation of the JC Runtime environment with the kit.
    You of course can't load that onto a card. And even if you had the RE, you won't be able to load onto a card because the RE is burned into the ROM which you don't have low level access to.
    Read the JCRE specs that come with the kit

  • What is Client-Side API for RMI on the Java Card Platform

    What is Client-Side API for RMI on the Java Card Platform ?
    And what is host software ?

    Your post is weird: you seem not to agree with yourself O_o
    OF COURSE sim cards have CPUs, otherwise how would you run an OS or a java vm on them?
    to drive the wifi there will be a proprietary api, just like mifare access on normal cards.
    the OS should manage the wiki stack in C/asm and expose javacard entry points. only "should" because this is only a press release.

  • Which cards do support java card platform (vm) 3.0 in the market now

    hello everyone, i search some website today for shopping card that support the platform, but there is no card.
    does any one know which card support it?

    If it is about the classic cards: I know that Giesecke and Devrient also supports v 3.0.1 in their smart c@fe expert cards. I am not sure if they sell to end-customers though, so it may depend on who you are/how many cards you want. I would link, but not sure if this is accepted here. Just check the strong authentication section in the product section on their website:
    http://www.gi-de.com/en/products_and_solutions/products/strong_authentication/Smart-Cards-f%C3%BCr-die-starke-Authentisierung-5824.jsp
    For connected cards: I think no time in the near future.
    Edited by: mdorner on 20.02.2013 12:57
    Edited by: mdorner on 20.02.2013 12:59

  • Installation of J2SE V1.4.2 and NetBeans Java 2 Platform, Standard Edition

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8. After this very long download, my ISP disconnected. I re-connected, but am unable to install the download. Please help.
    alinda78

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8.
    After this very long download, my ISP disconnected.
    I re-connected, but am unable to install the
    e download. Please help.
    alinda78

  • Java card plugin problem with NetBeans 6.8

    Hi, I've got a problem with the netBeans 6.8 i couldn't add a java card plugin at all. I try to run it with the netBeans 6.7.1 and it installs the plugin and adds the java card platform, but when i try to build a sample project I've got an error:
    java.lang.NoClassDefFoundError: ${javacard/packagerClass}
    Any ideas
    Netbeans versions: 6.7.1, 6.8
    JavaCard version: JCDK3.0.2_ConnectedEdition
    OS: WindowsXP

    first idea of all: isn't there a netbeans support forum/mailing list/plugin page ?
    regards
    sebastien

  • Java Card + Netbeans

    There is a Java Card plugin for Netbeans (6.7.1) but has anyone succeeded in adding the Java Card platform in Netbeans? I have tested with Java Card 2.2.2 and 3.0.1 without any luck. It is simply not possible to push the "Next >" button after having pointed out the Java Card path. Any ideas?

    The problem I had before remains. I have downloaded java_card_kit-connected-3_0_1 (url below) and extracted the jar file to a directory but when I select the directory (step 4 at page 195) I cannot click Next!
    url:
    http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/java_card_kit-connected-3_0_1-rr-bin-gl-b55-windows-26_may_2009.jar?BundledLineItemUUID=6b9IBe.nmC8AAAEj5EpeqxVE&OrderID=Qj1IBe.nNWIAAAEjzEpeqxVE&ProductID=yzNIBe.oUJ8AAAEhWxIzLohL&FileName=/java_card_kit-connected-3_0_1-rr-bin-gl-b55-windows-26_may_2009.jar

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

  • Java Card 2.2.2 draft is out for public review

    A draft for the upcoming release of the Java Card Specification is available for public review.
    The Java Card 2.2.2 Specification will provide numerous enhancements to the award-winning Java Card platform. In particular it will include specific support for contactless communication and ID cards :
    * enhancements to ease the management and increase interoperability of contactless cards.
    * additional cryptography and security features
    * utility APIs for memory-efficient applet development
    Java Card technology v2.2.2 is ready for the next generations of smart card standards, and is fully backward-compatible with previous versions.
    New features in Java Card 2.2.2 :
    * Utility APIs for TLV, BCD, short, int
    * ISO7816-based Extended length APDU support
    * Support for up to 20 logical channels
    * External memory access API
    * Multiple Interfaces management
    * Additional cryptography algorithms : HMAC-MD5, HMAC-SHA1, SHA-256 and Korean Seed
    * Signature with message recovery
    * Partial message digest
    * Standardized Biometrics API
    Please direct your comments on this draft at [email protected] Feedback received before December 15th will be considered for the final version of the specification. For more information on the Java Card Platform Specification v2.2.2, Public Review Draft, refer to the release notes on http://java.sun.com/products/javacard/RELEASENOTES_jcspecsp.html

    The Installer and the Applet Deletion Manager are implemented in the JCRE and GlobalPlatform. On-card the Card Manager manages the content management, communication and the related security. JCRE specifies how it has to handle installation and deletion, but leaves room for different implementations. To the outside world, on a GP card, the Installer/ADM is the Card Manager with a specific AID.
    Installer and ADM are optional. For instance a Java Card Static product does not need an Installer/ADM.
    JCOP cards have the Installer/ADM fully implemented. It uses the GP functionality. The CM has to be selected to install or delete a package/applet.

  • Any one can help me ....in java card

    Please check the following the following thesis are correct and check whether it is possible also
    If it is wrong please tell me what is wrong…
    Client side application software means is the one which run on our desktop…is it right
    Smart card host software is the one which will be embed on the smart card….is it correct      
    I am going to use java card. So can I develop the client side application software in java standard Edition? ….is it possible
    And smart card host software using connected edition, java card platform which will be embed into the card so that I can communicate with client application software….is it right
    What I understand about smartcard I have written …Is all these are right...Kindly replying me

    here's a bone to get you started. now that i've done the hard part,
    you should be able to finish the rest.
    public class Pet {     
         private String name;
         private char gender;
         private String hunger;
         private String mood;
         private String cleanliness;
         public Pet(String _name, char _gender){
              name = _name;
              gender = _gender;
         public void buyAccomodation(String accom) {}
         public int buyFood(int num){return 1;}
         public void feed() {}
         public void playFetch() {}
         public void playHideAndSeek() {}
         public void bath() {}
         public void advanceDay() {}
         public void bidFarewell() {}     
    }

  • NFC for Java Card

    Hi guys
    I'm a new one with NFC, especially for the field that I'm investigating right now, Java Cards. Hence, would you mind to help me with the initialization? I mean what am I supposed to begin with (name of documents, materials,...)?
    Any of your help would be appreciated.
    Thanks in advance
    Jason

    Jason,
    I'm not sure what you mean by NFC integrated Java Card. Could you give me the name of the document you downloaded from Global Platform?
    Java Card knows about the transport type between itself and the reader: contact (T=0, T=1 : ISO/IEC 7816) or contactless (T=CL : ISO/IEC 14443). But that is all; a Java Card applet should not know or care about the lower transport layers.
    As for the relationship between GSM, UICC and NFC, have a look at the document "NFC Stepping Stones" from SIMAlliance: http://www.simalliance.org/en?t=/documentManager/sfdoc.file.supply&fileID=1308660607647
    EDIT:
    For more on STK applets (GSM), read the Gemalto introduction to the SIM Toolkit: http://developer.gemalto.com/home/technology/sim-toolkit.html
    The best standard for you to start with is probably 3GPP 43.019.
    As reference, here is a partial list of (I hope) relevant standards. If you find more, please post them here!
    ISO/IEC:
    ISO/IEC 7816-1
    ISO/IEC 7816-2
    ISO/IEC 7816-3 (T=0)
    ISO/IEC 7816-4 (Limited to command set required for GSM compliance.)
    Java Card:
    Runtime Environment Specification Java Card Platform, Version 2.2.1 V2.2.1
    Virtual Machine Specification Java Card Platform, Version 2.2.1 V2.2.1
    Application Programming Interface Java Card Platform, Version 2.2.1 V2.2.1
    Global Platform:
    Global Platform Card Specification 2.1.1 V2.1.1
    GSM:
    GSM 11.11 version 8.3.0
    GSM 11.12 version 4.3.1
    GSM 11.14 version 8.3.0
    GSM 11.17 version 7.0.2
    GSM 11.18 version 7.0.1
    GSM Comp128-1, 2, 3
    SIM:
    TS 23.040 V.6 Technical realization of the Short Message Service (SMS)
    TS 43.019 V.6 Subscriber Identity Module Application Programming Interface (SIM API) for Java Card; Stage 2
    TS 51.011 V.5 Specification of the Subscriber Identity Module - Mobile Equipment (SIM-ME) interface
    TS 51.014 V.4 Specification of the SIM Application Toolkit for the Subscriber Identity Module - Mobile Equipment (SIM - ME) interface
    USIM:
    TS 31.102 V.6 Characteristics of the Universal Subscriber Identity Module (USIM) application
    TS 31.111 V.6 Universal Subscriber Identity Module (USIM) Application Toolkit (USAT)
    TS 31.115 V.6 Secured packet structure for (Universal) Subscriber Identity Module (U)SIM Toolkit applications
    TS 31.116 V.6 Remote APDU Structure for (Universal) Subscriber Identity Module (U)SIM Toolkit applications
    TS 31.124 V.6 Mobile Equipment (ME) conformance test specification; Universal Subscriber Identity Module Application Toolkit (USAT) conformance test specification
    TS 31.900 V.6 SIM/USIM internal and external interworking aspects
    TR 31.919 V.6 2G/3G Java Card™ Application Programming Interface (API) based applet interworking
    ETSI TS 135.208 Technical Specification Universal Mobile Telecommunications System (UMTS); 3G Security; Specification of the MILENAGE algorithm set
    UICC:
    TS 31.101 V.6 UICC-terminal interface; Physical and logical characteristics
    TS 31.121 V.6 UICC-terminal interface; Universal Subscriber Identity Module (USIM) application test specification
    ETSI TS 102.220 ETSI numbering system for telecommunication application providers
    ETSI TS 102.221 Smart cards; UICC-Terminal interface; Physical and logical characteristics
    ETSI TS 102.222 IC Cards Admin Commands for Telecom
    ETSI TS 102.223 Card Application Toolkit
    ETSI TS 102 241 "Technical Specification Smart Cards; UICC Application Programming Interface (UICC API) for Java Card"
    OTA:
    ETSI TS 102.224 Security mechanisms for UICC based Applications -Functional requirements
    ETSI TS 102.225 Secured packet structure for UICC based applications
    ETSI TS 102.226 Remote APDU structure for UICC based applications
    TS 23.040 V.6 Technical realization of the Short Message Service (SMS) Point-to-Point (PP)
    TS 23.041 V.6 Technical realization of Cell Broadcast Service (CBS)
    (U)SAT:
    TS 23.048 V.5 Security Mechanisms for the (U)SIM application toolkit
    TS 31.111 V.6 Specification of the USIM Application Toolkit
    TS 31.112 V.6 Universal Subscriber Identity Module Application Toolkit (USAT) interpreter architecture description
    TS 31.113 V.6 Universal Subscriber Identity Module Application Toolkit (USAT) interpreter byte codes
    TS 31.114 V.6 Universal Subscriber Identity Module Application Toolkit (USAT) interpreter protocol and administration
    TS 51.014 V.4 Specification of the SIM Application Toolkit for the Subscriber Identity Module - Mobile Equipment (SIM-ME) interface
    ETSI TS 102 223 Card Application Toolkit (CAT)
    SIM Alliance:
    S@T 01.00 Specification 2009 SIMalliance S@T Byte Code
    S@T 01.10 Specification 2009 SIMalliance S@T Markup Language
    S@T 01.20 Specification 2009 SIMalliance S@T Session Protocol
    S@T 01.21 Specification 2009 SIMalliance S@T Administrative Commands
    S@T 01.22 Specification 2009 SIMalliance S@T Operational Commands
    S@T 01.23 Specification 2009 SIMalliance S@T Push Commands
    S@T 01.30 Specification 2007 SIMalliance S@T Validation Test Plan System Functional Tests
    S@T 01.50 Specification 2009 SIMalliance S@T Browser Behaviour Guidelines
    S@T 01.60 Gateway Implement 2009 SIMalliance S@T Gateway Implement
    Security & Algorithm
    TS 33.102 V.6 3G security; Security architecture
    TS 33.105 V.6 Cryptographic algorithm requirements
    TS 35.205 V.6 3G Security; Specification of the MILENAGE algorithm set: An example algorithm set for the 3GPP authentication and key generation functions f1, f1*, f2, f3, f4, f5 and f5*; Document 1: General
    TS 35.206 V.6 3G Security; Specification of the MILENAGE algorithm set: An example algorithm set for the 3GPP authentication and key generation functions f1, f1*, f2, f3, f4, f5 and f5*; Document 2: Algorithm specification
    TS 55.205 V.6 Specification of the GSM-MILENAGE algorithms: An example algorithm set for the GSM Authentication and Key Generation Functions A3 and A8
    Test specification
    TS 31.048 V.5 Security mechanisms for the (U)SIM application toolkit; Test specification
    TS 31.120 V.6 UICC-terminal interface; Physical, electrical and logical test specification
    TS 31.121 V.6 UICC-terminal interface; Universal Subscriber Identity Module (USIM) application test specification
    TS 31.122 V.6 Universal Subscriber Identity Module (USIM) conformance test specification
    TS 31.130 V.6 (U)SIM Application Programming Interface (API); (U)SIM API for Java Card
    TS 31.213 V.6 Test specification for subscriber (U)SIM; Application Programming Interface (API) for Java Card™
    TS 35.203 V.6 Specification of the 3GPP confidentiality and integrity algorithms; Document 3: Implementors' test data
    TS 35.207 V.6 3G Security; Specification of the MILENAGE algorithm set: An example algorithm set for the 3GPP authentication and key generation functions f1, f1*, f2, f3, f4, f5 and f5*; Document 3: Implementors’ test data
    TS 35.208 V.6 3G Security; Specification of the MILENAGE algorithm set: An example algorithm set for the 3GPP authentication and key generation functions f1, f1*, f2, f3, f4, f5 and f5*; Document 4: Design conformance test data
    TR 35.909 V.6 3G Security; Specification of the MILENAGE algorithm set: an example algorithm set for the 3GPP authentication and key generation functions f1, f1*, f2, f3, f4, f5 and f5*; Document 5: Summary and results of design and evaluation
    TS 51.013 V.5 Test specification for Subscriber Identity Module (SIM) Application Programming Interface (API) for Java Card
    TS 51.017 V.4 Subscriber Identity Module (SIM) test specification
    Adriaan
    Edited by: Adriaan on Feb 14, 2012 1:34 AM

  • Java Card OS operating system

    Hi all.
    I'm researching "How to build an Java Card OS". Any one can suggest me how to do it, which document i should read and follow. I read 3 specifications of JavaCard JCRE, JCVM and JCAPI but i still in fog.
    Thanks all

    hoaibaotre wrote:
    Hi all, i have a BIG question. How can i implement JCVM by C with only JCVM Specification from SUN. I think that's not enough information to do. I read it but i didn't imagine the whole picture to do a JCVM.The JVM is just an interpreter that is able to execute byte code. It does not contain any libraries or other functionality. This is where the RE and API come in. These provide additional functionality so you do not need to implement it all in your applet.
    One thing more, when we build a JCVM, that will go along with JCRE because it is really difficult to separate two issues.The JCRE contains the Java Card VM. From the introduction of the JCRE spec:
    The Java Card™ platform, version 2.2.1 Runtime Environment contains the Java Card virtual machine (VM), the Java Card Application Programming Interface (API) classes (and industry-specific extensions), and support services.To have a complete JCRE, you need a JCVM and JC API. You can also add additional extensions to you JC RE/API by providing additional Java Card packages, which may use native code (similar to JNI) for interfacing with the card hardware directly.
    Cheers,
    Shane

  • Java card doubts..

    Hello all,
    I am trying to understand the concept of java card , I have some doubts , I want to share with , perhaps you would any best suggestion for me.
    //Jcop-  I read somewhere that Java Card OpenPlatform (JCOP) is a smart card operating system for the Java Card platform developed by IBM Zürich Research Laboratory.
    question 1 - if this above sentence is right it means jcop is an operating system developed by IBM, handle all operation inside the card.right? I have a card which indicate
    ATR like- 3b 89 80 01 4a ....40 ( in character form it indicate- ;---jcop41v22m) , so can i say? this is a card which o.s is made by IBM. and we require only and only JCOP tool to send cap inside this card because OS inside is JCOP and jcop tool would be the only option to talk to jCOp card?
    question 2 - or is there any other method by which i can send the applet inside my card?
    enable_trace
    establish_context
    card_connect
    select -AID a0000000030000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    delete -AID D0D1D2D3D4D50101
    delete -AID D0D1D2D3D4D501
    delete -AID D0D1D2D3D4D50101
    install -file helloworld.cap -nvDataLimit 500 -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
    question 3 - above code i got from gpshell 1.4.4 , the code style indictate that this is also a method tp send cap file inside the java card, I want to know that for my card case { atr is -3b 89 80 01 4a ....40 ( in character form it indicate- ;---jcop41v22m)} , I can apply gpshell to send .cap file in my card.
    question 4 - is gpshell is used to send cap into a special java card which is not jcop enable or which does not contaion jcop operating system?
    there are so many techniques , so many type of java card, it makes me confuse , I hope you seems this question genuine and would give me revert back
    regards:-
    Edited by: daniel on Feb 29, 2012 10:08 AM

    Alright, I'll awnser your questions my best.
    Question 1 :
    Yes, you could say that. However, i'm using a J2A080 card(JCOP card) and i'm not using the jcop tool kit.
    I use eclipse with EclipseJCRE add on to develop my application, since there is a JavaCard emulator in it, you can test it witout installing your applet everytime you make a modification.
    Question 2-3 :
    GPShell is a nice tool for card communication, but i would also suggest you GPJ. Specially if you start with java cards because it is way more easier. It works with my J2A080 and have been tested with your card type and should work. You just have to generate the cap file with eclipse and load it with GPJ
    Question 4 :
    I'm not sure about that but I think GPShell can works for pretty much all type of card that has OpenPlatform on it.
    But it is more complicated to find the good keys and get the good options at the good places, that is why I recomand you GPJ.
    Hope it helps you out!
    P.S. Pay attention to the JavaCard platform supportd by the card, yours is 2.2.1. If you try to build CAP file with an other version installed, it may not work properly.
    Edited by: FrancisOL on Feb 29, 2012 11:22 AM

  • Java card with javacardx.framework.math.BigNumber

    Could somebody point me to a vendor for java cards that support javacardx.framework.math.BigNumber?
    I searched this forum for 2.2.2 vendors, but could only find Athena IDProtect (http://www.athena-scs.com/product.asp?pid=32). The friendly support at Athena told me that this card does support the above package.
    Are there any other vendors of 2.2.2 cards that I could contact?

    Hi
    I am student working on a smart card project
    i am totally new to this field i have a lot of doughs to be cleared ..can you help me in this section
    my email id [email protected]
    i have return my doughs under the title : What is Client-Side API for RMI on the Java Card Platform
    : java card virtual machine

Maybe you are looking for