How to ensure applet is written in java card?

Hi all,
I have written a java card applet, in which i am using the Biometry API of java card to enroll a fingerprint template in java card. Code is attached below:
package classicapplet1;
import javacard.framework.*;
import javacardx.biometry.BioBuilder;
import javacardx.biometry.OwnerBioTemplate;
import javacardx.biometry.SharedBioTemplate;
import javacardx.biometry.BioException;
public class JavaBiometrics extends Applet implements SharedBioTemplate{
        public final static byte CLA = (byte)0xCF;
     public final static byte INS_ENROLL = (byte)0x10;
     public final static byte MATCH_TRY_LIMIT = (byte)3;
     public final static byte INVALID_DATA = (byte)0x77;
     public final static byte ERROR_MATCH_FAILED = (byte)0x9101;
     public static final byte CARD_ENROLL_SUCCESS = (byte)0x9000;
     public static final byte CARD_ENROL_FAILED = (byte)0x6900;
     private OwnerBioTemplate bio_temp;
     * Installs this applet.
     * @param bArray
     *            the array containing installation parameters
     * @param bOffset
     *            the starting offset in bArray
     * @param bLength
     *            the length in bytes of the parameter data in bArray
    public static void install(byte[] bArray, short bOffset, byte bLength) {
        new JavaBiometrics(bArray, bOffset, bLength);
     * Only this class's install method should create the applet object.
    protected JavaBiometrics(byte[] bArray, short bOffset, short bLength) {
    byte aidLen = bArray[bOffset];
          if(aidLen == (byte)0)
               register();
          else
               register(bArray, (short)(bOffset+1), aidLen);
          bio_temp = BioBuilder.buildBioTemplate(BioBuilder.FINGERPRINT, MATCH_TRY_LIMIT);
public boolean select()
return true;
     * Processes an incoming APDU.
     * @see APDU
     * @param apdu
     *            the incoming APDU
    public void process(APDU apdu) {
        //get the incoming APDU buffer
     byte []buffer = apdu.getBuffer();
     //Get the CLA; mask out the logical-channel info
     buffer[ISO7816.OFFSET_CLA] = (byte)(buffer[ISO7816.OFFSET_CLA] & (byte)0xFC);
     //If the INS Select, return -no need to process select
     if(buffer[ISO7816.OFFSET_CLA] == 0 && buffer[ISO7816.OFFSET_INS] == (byte)(0xA4))
          return;
     //If unrecognized class, return "Unsupported class."
     if(buffer[ISO7816.OFFSET_CLA] != CLA)
          ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
     switch(buffer[ISO7816.OFFSET_INS])
     case INS_ENROLL:
          enroll(apdu);
          break;
     default:
          ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
public void enroll(APDU apdu)
        byte[] buffer = apdu.getBuffer();
        short bytesRead = apdu.setIncomingAndReceive();
        bio_temp.init(buffer, ISO7816.OFFSET_CDATA, bytesRead);
        bio_temp.doFinal();
    public Shareable getShareableInterfaceObject(AID clientAID, byte parameter) {
        return this;
///////////// These methods implemets the ShareableBio interface///////////////
public boolean isInitialized() {
        return bio_temp.isInitialized();
    public boolean isValidated() {
        return bio_temp.isValidated();
    public void reset() {
        bio_temp.reset();
    public byte getTriesRemaining() {
        return bio_temp.getTriesRemaining();
    public byte getBioType() {
        return bio_temp.getBioType();
    public short getVersion(byte[] dest, short offset) {
        return bio_temp.getVersion(dest, offset);
    public short getPublicTemplateData(short publicOffset, byte[] dest, short destOffset, short length)
            throws BioException {
        return bio_temp.getPublicTemplateData(publicOffset, dest, destOffset, length);
    public short initMatch(byte[] candidate, short offset, short length) throws BioException {
        return bio_temp.initMatch(candidate, offset, length);
    public short match(byte[] candidate, short offset, short length) throws BioException {
        return bio_temp.match(candidate, offset, length);
Problem :
I have developed this program in Netbeans using java card plug ins. when i am running this program, all the required CAP files and EXP files are generated.
Now, i have to write this applet on java card through a card reader. My card reader is installed in an embedded system GeoAmida with IP 192.133.133.2 and port number 6789.
I have used the following settings for my java card device in Netbeans:
Host : 192.133.133.2
Server URL: http://192.133.133.2:6789/
Card Manager URL: http://192.133.133.2:6789/cardmanager/
HTTP port: 6789
The output shows me that Instances of this program has been successfully has been created on java card.
But the problem is how can i ensure that my applet is been successfully installed on the java card?
The code of host application program, accessing the developed java card applet is given below (it is written in C):
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <smartcard.h>
int main()
     int ret, i, smartcard;
     unsigned char applet_id[100], apdu_len, apdu[300],response[300]={0};
     smartcard_info *context;
     smartcard=CONTACTLESS;
     //smartcard=CONTACT_BOT;
     if((context = smartcard_init(smartcard)) == NULL){
          printf("Smartcard Initi. Failed\n");
          return 0xBB;
     /* checking for smartcard */
     while (1){
          if(ret=smartcard_is_present(context, smartcard)!=0)
               sleep(1);
          else
               break;
     printf("Selecting Applet \n");
     i = 0;
     applet_id[i++]=0x00; applet_id[i++]=0xA4; applet_id[i++]=0x04; applet_id[i++]=0x00; applet_id[i++]=0x06;
     applet_id[i++]=0xA9; applet_id[i++]=0xBF; applet_id[i++]=0xA2; applet_id[i++]=0xB6; applet_id[i++]=0xB1; applet_id[i++]=0x3E; applet_id[i++]=0x7F;
     if ((ret=smartcard_select_applet(context, smartcard, applet_id, i))!=0){
          printf("select applet failed %02x\n",ret);
          return ;
     printf("Applet Selection Success \n");
#if 1
     i=0;
     apdu[i++]=0xCF; apdu[i++]=0x10; apdu[i++]=0x04; apdu[i++]=0x04; apdu[i++]=0x7F;
     //apdu[i++]=0x3F; apdu[i++]=0x00;
     apdu_len = i;
     printf("Sending APDU command\n");
     if ((ret=smartcard_apdu(context, smartcard, apdu, apdu_len, response))!=0){
          printf("apdu failed %d\n",ret);
          //return;
     }else
          printf("APDU Success\n");
     //printf("\n");
#endif
     smartcard_deinit(context);
     return 0;     
}The output of this program is showing me that applet is been successfully selected, but APDU selection failed. Please solve this problem as soon as possible, because my project is deadline is not very much far.
Thanks in advance.
Mukul Gupta

Hi Shane,
I am getting error 6a86 which means that value of P1 is less than 1 or more than 8, and we have to change its value to any in between 1 to 8. I did that also but error still remains :(
Please tell me what is reason behind this error. And, i'll try out your previous solution today, Thanks for it.

Similar Messages

  • How to Install .CAP file in the Java Card?

    Hi Friends..
    How to install *.CAP* file in the Java Card?..
    I've GPShell script as follows :
    mode_211
    enable_trace
    establish_context
    card_connect -readerNumber 2
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
    install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500  -sdAID A000000003000000
    load -file HelloWorld.cap
    card_disconnect
    release_contextwith that script i can load HelloWorld.cap file successfully..
    Now, how to install the HelloWorld.cap file?..
    if i add script : load -file HelloWorld.cap i got this error :
    install -file HelloWorld.cap
    file name HelloWorld.cap
    Command --> 80E602001B09A00000006203010C0107A00000015100000006EF04C60201A80000
    Wrapped command --> 84E602002309A00000006203010C0107A00000015100000006EF04C60201
    A80030C859793049B85300
    Response <-- 6985
    install_for_load() returns 0x80206985 (6985: Command not allowed - Conditions of
    use not satisfied.)i ask this question because when i tried to select the applet through its AID, by this script :
    establish_context
    card_connect -readerNumber 2
    select -AID a00000006203010c0101i got this message error : select_application() returns 0x80216A82 (6A82: The application to be selected could not be found.)
    but there's exactly any that AID in my Java Card..
    here's is the list of AID from My Java Card :
    C:\GPShell-1.4.2>GPShell listgp211.txt
    mode_211
    enable_trace
    establish_context
    card_connect -readerNumber 3
    * reader name OMNIKEY CardMan 5x21-CL 0
    select -AID a000000003000000
    Command --> 00A4040008A000000003000000
    Wrapped command --> 00A4040008A000000003000000
    Response <-- 6F108408A000000003000000A5049F6501FF9000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
    f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Command --> 80CA006600
    Wrapped command --> 80CA006600
    Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864
    886FC6B03640B06092A864886FC6B040215650B06092B8510864864020102660C060A2B060104012
    A026E01029000
    Command --> 8050000008AAF7A87C6013BC0300
    Wrapped command --> 8050000008AAF7A87C6013BC0300
    Response <-- 0000715457173C2A8FC1FF0200937A55C288805D8F2A04CCD43FA7E69000
    Command --> 848201001023CA18742D36165ED992CFF2146C3D51
    Wrapped command --> 848201001023CA18742D36165ED992CFF2146C3D51
    Response <-- 9000
    get_status -element 10
    Command --> 80F21000024F0000
    Wrapped command --> 84F210000A4F004FF8BE1492F7275400
    Response <-- 0CF0544C00004D4F44554C415201000009A00000006203010C010100010AA000000
    06203010C01019000
    GP211_get_status() returned 2 items
    List of Ex. Load File (AID state Ex. Module AIDs)
    f0544c00004d4f44554c4152        1
    a00000006203010c01      1
            a00000006203010c0101
    card_disconnect
    release_contextPlease help me..
    And please correct me if i'm wrong,,
    Thanks in advance..

    Any suggestions for my question?..
    Please help me..
    Thanks in advance..

  • Plz Help! How to Store digital certificate on to java card?

    We are working on java cards.......
    But i don't know how to store digital certificate on to java card?
    Any "step-by-step procedure" to follow after getting the certificate will be appriciated.....
    Plz any relative information if u have do reply...............
    Its urgent..............
    Thanks in advance..........

    I'm not understanding the confusion. Instead of storing a picture you are storing a certificate. Treat it as a blob of data. You will send data, approx 250 bytes in length, then send the next blob beginning from previous offset, etc. On the card, you store data into a large byte array beginning at the offsets. Read the picture sample again.
    You would generate the key pair using the KeyPair class. Send that public key to the CA and store the cert returned from the CA.
    If you are attempting PKCS#15, I wouldn't go that route until you understand Java Cards and the PKCS specification.

  • Default applets on brand new java card and spec support

    Hi,
    I have got brand new java card reader and real java card.
    I want to just access it using Java and see if I can access stuff on the java card before i go ahead with next things.
    I was thinking of just doing select on some applet which is present on brand new java card by default.
    1. Does anyone know if any default applet is present on java card?
    2. If yes, AID of that?
    3. Is there any APDU by which I can find out which java card spec that card supports?
    Btw, I am using Java Card 2.2.2 and the card i have should also have same support.
    Edited by: unic.man on Jul 12, 2008 2:11 AM

    >
    1. I know that any smart-card has a universally unique id which can be retrieved pro grammatically. Can you please tell me the APDU/API to retrieve it on Host app side? If not, card side at least?
    I don't know much about unique IDs but basically you've got the ATR which is given to you every time the card is powered on. The ATR identifies a particular family of cards. If you want to identify each card you need to have a look at the GET DATA command (in Global Platform) and especially the CPLC (Card Production Life Cycle). Apparently you can get a unique ID by combining the IC batch identifier and the IC serial number.
    2. I'm also struggling with deploying the app. It is not detecting the default installer applet via apdutool. I found some articles and netbeans plug-in talking about keys to download applet on card. Do you know standard keys/derivated keys to start secured channel?I don't think you can use the JCDK to install an applet on a real card. If you have a JCOP card I advise you to get the JCOP tools. And yes you will need the keys to establish a secure channel but I don't know what the default keys are on a JCOP card.

  • How to find out memory of a java card

    is there anyone could tell me that how can we check the size of the memory of a card? thank you in advance:D

    If the card is a Java Card 2.2.1, create an applet that returns
    JCSystem.getAvailableMemory(), install and queryit.
    Some other ideas for getting the free memory on card were presented in the thread "Java Forums - Free memory on card"
    http://forum.java.sun.com/thread.jspa?threadID=647894&tstart=30
    Jan

  • 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

  • How to integrate applet into web dynpro java application

    Hello Exprt,
    I am struggling with integrating applet into WD applciation. I don't see any applet specific UI element. I would highly appreciate your help.
    Thanks,
    Shubhangi

    Satyajit Chakra...
    Please can you clarify what you mean that it has been deprecated?
    We have a similar requirement and I have tested a method to do this on our NW 04 system that worked.  But I really need to know what to plan for when we upgrade to 04s.
    I am not sure if this is the right approach, but here's how I did it on our 04 system....I need to know if the approach I have taken below will work properly in 04s.
    I built an HTML file in a string which contains javascript to launch the IXOS viewer applet...which is the "inString" below...
              try
                   String html = inString;
                   IWDCachedWebResource resource = WDWebResource.getWebResource(inString.getBytes("UTF-8"), WDWebResourceType.HTML);
                   resource.setResourceName("HTML_inline.html");
                   resource.setAttachement(false);
                   resource.setReadOnce(false);
                   wdContext.currentContextElement().setOut(resource.getAbsoluteURL());
              catch (final Exception ex)
                   wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(ex), false);
              IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopupImageViewer");
              IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
              window.setTitle("Image opening in separate window");
              window.setWindowPosition(25, 225);
              window.open();
              wdContext.currentPopupElement().setWindowInstance(window);

  • How could I generate RSA Key on Java Card

    I am coding program base on javacard .
    I can generate DES Key ,but I can't generate RSA key.
    Any help is appreiciated.
    Thanks in advance.
    Regards.

    I think you need a '3rd party' for this, I'm pretty sure that there is no in-built support for RSA - though there is Diffie-Hellman.

  • How SDA and DDA works in Java Card?

    Hi Friends,
    I want to know how exactly SDA and DDA works in Java Card technology..
    Yes, i know that SDA (Static Data Authentication) is valid for every transactions, but the key used is always same for every transaction made..
    and DDA (Dynamic Data Authentication) uses dynamic key for every transactions, it means that one key is valid for one transaction..
    But, i'm a little bit confused how this is implemented in Java Card..
    Is it related with SCP01 and SCP02?..
    Please help me regarding this..
    Thanks in advance

    Hi,
    I want to know how exactly SDA and DDA works in Java Card technology..This is an EMV concept and as such is not implemented in Java Card as such. You would have to create an implementation to be able to use SDA and DDA.
    But, i'm a little bit confused how this is implemented in Java Card..
    Is it related with SCP01 and SCP02?..It is not implemented natively in Java Card and are not related to SCP. SDA and DDA are for the EMV card application (card application data updates) and SCP is for the card manager (card content updates). While they could be considered similar concepts, they are not related in a Java Card sense.
    Cheers,
    Shane

  • Inter-applet object shareing concepts in java card

    hi there.
    what is a way of implimenting inter-applet object shareing in java card?
    is there any shared area of JCRE for sharing some values among some applets in same java card?
    thanks.

    hi, as i know, there are three approaches:
    1: shareable interface;
    2: entry point;
    3: global array;
    and if the applet has JCRE privilege, then it is overwhelming.
    for details , please refer to the JCRE Specification.

  • Java card virtual machine

    java card virtual machine
    Is java card virtual machine support java code written in a java standard edition....
    and what are the features and specification of java card virtual machine
    how to get the java card virtual machine sdk and work with that in netbeans

    1.Whether JCVM is Portable to different platform?Are you a java card user or a java card manufacturer?
    As user this is not your concern. the JCVM is an inseparable part of your java card.
    3.What is the use of Cref in JCVM.Whether that helps in portability?CREF is the "Java Card Reference Implementation". It allows you to run java card applets by simulating a java card environment on a common PC. It's intention is to be executed in an environment with an 32bit processor and lots of ram (compared to current smart cards). IMHO cref can not be ported to any current smart card platform.
    Jan

  • Simulator for java card

    hi
    i am new to java card technology...i am writing the applets in netbeans using java card plugin....the problem is i m not able to simulate the applet..it is showing build successfully, but wen i run the app it is showing nothing.....so can anyone suggest me a suitable simulator for the same....

    Hi,
    I assume you are after details on how to use the simulators? There are examples and documentation with the JC specifications and developer kit. Both of these are available from the Sun website [http://java.sun.com/javacard/].
    If you are after details on how to develop your own, the JC specifications outline the requirements for the JCRE and JCVM that you can use to implement a simulator.
    Cheers,
    Shane

  • Java Card Virtual Machine Portability

    1.Whether JCVM is portable or not?
    2.If yes how it communicates with Card OS and Native Methdods?
    3.Which website is more useful to know about the working of OCF and JCOP?

    1.Whether JCVM is Portable to different platform?Are you a java card user or a java card manufacturer?
    As user this is not your concern. the JCVM is an inseparable part of your java card.
    3.What is the use of Cref in JCVM.Whether that helps in portability?CREF is the "Java Card Reference Implementation". It allows you to run java card applets by simulating a java card environment on a common PC. It's intention is to be executed in an environment with an 32bit processor and lots of ram (compared to current smart cards). IMHO cref can not be ported to any current smart card platform.
    Jan

  • Java Card and PKCS#11 or MS CSP

    Does anybody have any idea how Java Card could be integrated in an standard e-mail signing application, i.e. with Outlook, S/Mime, MS CSP and PC/SC or Netscape with PKCS#11 and PC/SC?
    My understanding is that with standard ISO Cards the connection e-mail client and smart card looks like this:
    | e-mail client | <-> | PKCS#11/MS CSP | <-> | ICC Service Providers | <-> | ICC Resource Manager | <-> | Interface Device Handler | <-> | Interface Device (SC reader) | <-> | Smart Card |
    How does this scenario look like with java cards?

    Hello,
    Thank you for the replay. I'm sorry for the delay, but I wasn't in my office a long time.
    Do you have any further informations about that scenario? It would help me a lot.
    I wand to know for example, how exactly the interface between MS CPS and the JAVA card app (the javacardx.crypto(Enc) packages) is implemented. Thank's in advance
    kay.

  • There is not javacard.framework in Java Card 3.0.4

    I tried to write a javacard applet. So,
    Download Java Card Classic Development Kit 3.0.4 (java_card_kit-classic-3_0_4-rr-bin-do-b28-windows-06_sep_2011.jar) that I get its JAR File
    I add the JAR File in to Eclipse by add it in the Java Build Path>Library.
    But when I wanted to import javacard.framework, I got the "javacard.framework cannot be resolved" error. Moreover, when I saw inside the Development Kit, there was no javacard.framwork package in it. There is only "com.","net.","apache." package.

    I can execute it. Now, I can get all stuff including the javacardx.framework.
    I download JCDE and and put it into Eclipse Folder. There is the "Java Card" Menu on the top bar of eclipse. I set the JavaCard home at the preference of the menu to My installed JavaCard Development kit folder but I cannot apply . Eclipse said there is not converter.jar in the folder. So, I have to set the JavaCard home to My JavaCard 2.2.1 folder instead.
    However, Eclipse still give me the "javacard.framework cannot be resolved" error

Maybe you are looking for

  • MacBook Air EtreCheck Cleanup Needs

    I've seen many recomendations to run EtreCheck to see what might be slowing you down or causing restarts.  So, I ran it, cleaned what looked out of place, restarted, dumped trash, ran and repeat and I think I am to a good point of asking for a bit of

  • Cannot Read Font Metrics Issue on Save As PDF

    Hi All On saving a document as PDF, the FrameMaker Console displays the message: The font file may be damaged. maker: Cannot read font metrics from font file named Tahoma-Bold. The PDF is created but it contains squares in place of letters. This only

  • How to avoid multiple call to function:

    In our datawarehouse we have a huge receipt row table where all metrics ar stored in the local currency. On top over that we have views which calculate metrics to the desired currency. So basically all views looks like this select geo_region, product

  • Regarding packages

    Hi guys what is the difference of is/as keyword in package body declaration.....

  • Error when test for checking RFC destination

    hi all, I config "Vitual Administrator" successful follow document "Configuring ADS for Guided Procedures.pdf", when i create ADS(sm59) with use ADSUser, system raise error "You are not authorized to view the requested resource" and when run checking