5 Replies Latest reply: Mar 1, 2012 5:07 PM by safarmer RSS

    Is this a bug in CJCRE ? or I am wrong in something.

    rohit007
      Hello all, I am using C-JCRE for simulation , It is working fine but still there are some problem in there. let me know you.
      I am using java card 2.2.1 and implement all concept { compilation, converter ,scriptgen and all ) in command prompt
      after all steps i convert .cap file to script with using scriptgen,

      now terminal 1 code is:-
      //-----------------------------------------------------(TERMINAL 1)----------------------------------------------------
      
      
      C:\>cref -o getname
      
      Java Card 2.2.2 C Reference Implementation Simulator (version 0.41)
      32-bit Address Space implementation - with cryptography support
      T=1 / T=CL Dual interface APDU protocol (ISO 7816-3)
      Copyright 2005 Sun Microsystems, Inc. All rights reserved.
      
      Memory configuration
              Type    Base    Size    Max Addr
              RAM     0x0     0x1000  0xfff
              ROM     0x2000  0xe000  0xffff
              E2P     0x10020 0xffe0  0x1ffff
      
              ROM Mask size =                 0xce64 =        52836 bytes
              Highest ROM address in mask =   0xee63 =        61027 bytes
              Space available in ROM =        0x119c =        4508 bytes
      EEPROM will be saved in file "getname"
      Mask has now been initialized for use
      In terminal 2, I called apdu tool with script file which i made by SCRIPTGEN.
      //                                                             TERMINAL 2
      C:\java_card_kit-2_2\samples\classes\com\sun\javacard\samples\GetName\javacard>apdutool -noatr -nobanner getname.scr
      its work fine, all apdu response was 90 00, then i also fire a script regarding PROCESS() method of applet, it gives require result to me.
      my problem is everytime i called cref or writing any applet with CREF, all the time , memory configuration are same and equal to:-
      Memory configuration
              Type    Base    Size    Max Addr
              RAM     0x0     0x1000  0xfff
              ROM     0x2000  0xe000  0xffff
              E2P     0x10020 0xffe0  0x1ffff
      
              ROM Mask size =                 0xce64 =        52836 bytes
              Highest ROM address in mask =   0xee63 =        61027 bytes
              Space available in ROM =        0x119c =        4508 bytes
      it should be change!!!!!!!!!!!!!
      I think it should be change when multiple applets installed by CREF!!!!!!!
      Let me know if you have any quiry!!!!!!!!!!!