Convert ijc file to cap file

Dear All,
I want to create script to load and install a package into smartcard.
I have a ijc file. I want to convert it to cap file so my tool only create script from cap file.
Please support to help me!
Kelvin Nguyen

It's not only 'package/applet ASCII name would be lost'! IJC is a special format which is GSM-oriented format. Converting from CAP to IJC is not only removing some 'useless information'. The conversion involves the following modifications:
- organisation component is removed
- the component-oriented structure in CAP file will be 'spread' to be 'flat' in structure.
Tthese modifications are irreversible from my point of view (the CAP-2-IJC conversion is destructive in terms of information and structure).
By the way, if this question is in the context of (U)SIM applet, another reason that we should not carry out the conversion IJC-2-CAP (if it's possible) is that, this conversion will produce a file that is bigger in size, not in a (U)SIM applet logic.
Best regards, JDL

Similar Messages

  • IDES for writing Java card applets and converting the applets as CAP FILE.

    I have developed a JAVA CARD APPLET , FindMFValueJCA.java . It gets compiles in net beans 6.0 But while converting the applet to CAP file i am getting some errors. Is there any other IDES which take care of converting the CAP files

    What's the Java version you are using?
    As the java card tool kit has version dependencies. If you are using java_card _kit 2.2.2 then 1.5 is fine.                                                                                                                                                                                                                                                                                                   

  • Convert from java file to cap file

    Dear Pro,
    Please help me this problem,
    I'm building a applet in eclipse. Now, I want to convert from java file to cap file to load it into javacard.
    I need repair what tools and do what, please help me!
    Thanks & Best Regards,
    KeillyNguyen

    Run -> Run Configuration -> Double click Java Card Application -> Click Run
    After that, the CAP file will be generated in the bin directory.
    Are you come from VN? Im Vietnamese :) Nice to meet you

  • Error converting to cap file

    Hello everyone,
    I tried to follow sample of java card kit, but I've got this error when I 'd like to convert class file to cap file with converter.
    Assertion (precondition) [member != null] failed at:
    What's wrong ????
    It's out only jca and exp file but not cap file.
    Could you please tell me how to generate cap file?
    Thank you very much,

    I' m sorry.
    I found this in another topic that I have to compile with jdk1.3.x.
    Thanx,

  • What is the wrong about converting the .class of api of jc to .cap files?

    hi everyone
    l tried to convert the .class filses of api to .cap files,there are some wrongs please help me!
    ___the .opt file:___
    -out JCA CAP EXP
    -exportpath D:\jCDK2_2_1\api_export_files
    -classdir D:\workspace\framework
    framework
    0x0a:0x0:0x0:0x0:0x62:0x1:0x01 1.2
    converter result:
    c:documents and settings\administrator>converter -config d:\workspace\framework\framework.opt
    java card 2.2.1 class files converter ,version 1.3
    copyright 2003 sun microsystems,inc.all rights reserved.use is subject to license terms
    error:javacard.framework.JCSystem:unsupported method modifier native in method isTransient.
    error:javacard.framework.JCSystem:unsupported method modifier native in method makeTransientBooleanArray.
    error:javacard.framework.JCSystem:unsupported method modifier native in method makeTransientByteArray
    error:javacard.framework.JCSystem:unsupported method modifier native in method makeTransientShortArray
    conversion completed with 13 errors and 0 warnings.
    thanks in advance

    Hi,
    I am not sure why you are trying to convert the API packages into CAP files. The JAR files that ship with the JCDK are only stub implementations for compiling against. They do not have an actual implementation. You will find methods returning a short always return 0 etc. You should only need to convert your code into CAP files. You will just need to reference the .exp files that are included in the JCDK for the API so your code can be converted.
    Cheers,
    Shane

  • Error in convertionof .class to CAP file

    we are using java_card_kit-2_2_1 with j2sdk-1.4.2_12 for developing Applet for Smart card.We are new to the javacard enviornment.We are testng with the avvailable samples in java card kit.
    The steps we are following is given below:
    1.Convertion of java file to class file.
    Class file generated in the path- c:\java_card_kit-2_2_1\samples\src\com\sun\javacard\samples\Helloworld
    2. convertion of class file to Cap file:
    we are using one batch file -run.bat
    run.bat:
    set CLASSES=%JCHOME%\lib\apduio.jar;...;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\capdump.jar;
    xcopy /s %JC_HOME%\api_export_files\*.* exp
    java -classpath %_CLASSES% samples.src.com.sun.javacard.samples
    converter -config HelloWorld.opt
    3.We are running the run.bat file when exp folder is created having the .exp files init.
    4.Then we are using the converter as:
    converter -config ...HelloWorld.opt.
    the .opt file contains..
    -out EXP JCA CAP
    -exportpath C:\java_card_kit-2_2_1\api_export_files
    -applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1
    com.sun.javacard.samples.HelloWorld.HelloWorld
    com.sun.javacard.samples.HelloWorld
    0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0
    Then the error is generated as:
    error:export file framework.exp of package javacard.framework not found.
    the above run.bat file the line below needs explanation..
    java -classpath %_CLASSES% samples.src.com.sun.javacard.samples
    converter -config HelloWorld.opt
    plz reply
    Message was edited by:
    jit_hk

    converting .class files to a loadable format for the smart card creates .cap file and .exp files. the .exp files specify information about any (shared) libraries.
    i dunno how exactly to do it with the java card kit from sun. look into the jcop converter tric.jar .

  • CAP file

    Suddenly I am not able to get the CAP file. The Java Card project is successfully built. The converter produced only one CAP file for one package. The package in which the applet is defined is not converted. Is there any trace where can I found out what is wrong?

    I am using NXP Jcop tools plugin for the eclipse. My project has two java card packages. In one package there is Java Card applet and in the other is the rest of the classes. I divide it like that because my application is very large and the splitting was necessary. The package in which other classes are successfully built and converted while the other was jut built. At the end I am having only one CAP file. Where can I found the information why the conversion of the other package failed?

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

  • Upload cap file by net on client card, and protect cap file. Encode cap?

    How upload cap file by internet on client card, and protect cap file. Encode cap file?
    cap file > Server (keys) --> internet --> Client Program --> JCOP10 card
    Can I use secure channel protocol ? How ?

    Thanks for response.
    Problem for me is communication between client program(computer) -> reader -> card.     
    The cap file is in Bin format.
    Transmission can by easy scanned. How to protect this step of upload process?.
    Internet is no problem.
    My English is pure, and I have problem to understand specification.
    Can I upload, install cap file encoded by Secure Channel Protocol '02' ?
    If yes, then some example, log file can help me understand how to do this and how build APDU commend. I Use my program (Delphi) to communicate with reader and card.

  • Cap file analyzer program?

    Hello all,
    Is there any program to analyze the cap file?
    the program read the cap file and print out or make a file with cap file information by components user kindly format. like Header Component.tag = 0x01 size=0x0A .....
    Thanks,
    Julie.

    hi:
    i write a program that can parse CAP file, hope that is helpful to you.
    http://www.akaembed.org/Inetpub/uploads/AKA_Mail/JavaCard/CAPParser/CAPParser.exe
    Good Lucky!

  • How do I convert Wallet.class to a CAP file?

    I was trying to convert one of the sample files( Wallet.class) to a CAP file but it didn't work.
    Please help!!!

    Please be more specific. Describe what you did in detail, provide outputs of your actions etc. Otherwise noone can help you.
    Somebody save the world..

  • Converting CAP file to JCA using normalizer

    Hi, I'm trying to generate 2.2.1(or 2.2.2) JCA file from 2.2.1(or 2.2.2) CAP file using JCDK 3.0 normalizer. I generated class files successfully but when using converter from javacard-kit 2.2.2 i get following error messages
    unsupported class file format of version 50.0.
    Is there any way to solve the error? I also like to know if there exists any other tool other than normalizer to convert cap file to jca file,

    javac -g -source 1.2 -target 1.2 -classpath $JC_HOME/lib/api.jar:$JC_HOME/lib/installer.jar src/xu/test/*.java -d binYou can have a look at the man file for javac in the section source/target and try the different options. I'm using sun-java6-jdk with these compiler parameters and have no problem when it comes to converting the files.
    Hope this can help you.
    Cheers

  • Converting CAP 3 files to Cap 4 files

    Hi,
    I recently purchased Cap 4. I already had Cap 3 on my
    computer prior to downloading Cap 4. I thought that Cap 4 would
    automatically convert older C3 files to C4. So i removed C3
    software. Once removed, all current C3 files were shown as
    unopenable (ie cap file icon gone) but I could open the old C3
    files with C4 (which performed the conversion during opening.
    However, When I saved the newly opened file (in C4) it did not seem
    to be saved as a C4 file (ie there wasnt any file icon shown where
    saved) the file icon still looks like the unopenable C3 file (post
    removal of C3 app)
    Whats going on?
    RB

    Hi RB
    Normally the icons you see in Windows Explorer are a result
    of installing an application. At that time, an association is
    created between certain file types and their application.
    My question to you is twofold.
    1. Did you uninstall C3 AFTER you installed C4?
    2. What happens when you double-click the icon?
    As long as you are operating by opening Captivate, THEN
    opening the project files you should be okay. I'm guessing you
    uninstalled C3 after you installed C4. And when you uninstalled C3,
    it probably disassociated the CP file extension so it is now
    unknown to Windows. Double-clicking the file *SHOULD* result in
    Windows asking you which application you wish to use to open the
    file. You should then be able to browse to Captivate 4 and choose
    the EXE file. When you do that, the dialog normally has a check box
    allowing you to permanently associate the file type with Captivate.
    Hopefully this was helpful to you... Rick

  • How to debug byteCode? Can cap file convert to java source file?

    Are there tools can debug byteCode?
    Are there tools can convert cap file to java source file?
    Are there tools can convert jca file to java soure file?

    I think it's little bit difficult to give you a correct answer. Frankly speaking, cap file debugging is possible if you have sufficient devices and knowledge to do that. Converting cap file to java source code is also possible only if the cap file has descriptor component in it. Names of variables, functions will not be completely restored because cap file doesn't have the names in it. But I am not sure that there is a publicly opened tool to do that. JCVM chapter 6 may show you the way even it's not the direct one.

  • Javacard converting to CAP file

    I'm trying to generate a .cap file for some applet source provided externally, and capgen/converter are throwing an IllegalArgumentException when I attempt to generate a .cap (either straight from .opt or using capgen on a pre-generated .jca file).
    The output I'm getting is pretty basic even in verbose mode:
    java.lang.IllegalArgumentException
    Cap file generation failed.
    conversion completed with 1 errors and 0 warnings.
    I've tried with or without the -noverify flag.
    I'm using Java JDK Standard Edition (build 1.4.1_02) to run the converter, and compile the source files. And I've tried the converter in the Sun Java Card Development kit 2.2.1.
    also I'm using GlobalPlatform 2.1.1.
    When using JDK 1.3 version, success generate CAP File.. but 1.4 version is throw java.lang.IllegalArgumentException.
    Help me.. Thanks,
    Edited by: StrangeWorld on Jun 7, 2010 6:19 PM

    Hi,
    You need to target JDK 1.3 to compile classes to convert to a cap file. You can however do this with any newer JDK (I use Java 6). You need to specify the -source 1.3 and -target 1.1 arguments (this instructs the compiler to target and older JVM).
    You should then be able to convert your class into a CAP file. If this doesn't work switch the values for source and target as this is off the top of my head and I usually get the back to front.
    Cheers,
    Shane

Maybe you are looking for

  • Flex/AS3 Best way to construct a derived class instance from an existing base class instance?

    What is the best way to handle the instantiation of a derived class from an existing base class. I have a base class which is being created via remote_object [RemoteClass alias] from the server.   I have other specialized classes that are derived fro

  • Anyone else feel as sad as I do? Left out of the reception/proximity issues

    I hope of the 1.7 million phones sold, someone else loves and enjoys there iPhone 4 as much as I do or am I completely alone? I waited on-line the average 14 or so hours to finally get my phone. The experience was incredible, I met a load of new frie

  • Double clicking home button for music player

    my sister got the new ipod touch 4g and she cant listen to music while she is playing a game that stops the music. how does she listen to music while playing a game? also my ipod touch is a 2g and i double click the home button for the music player t

  • I can't seem to export page documents as word documents

    Recently, when try to save a pages document as a word document, I get a message that tells me that I can't export the document as a similarly named word document. What's happened? It is a new phenomenon, as I've been doing this as long as I've had Pa

  • Iphoto quicktime w/ captions?

    Is there a way to export a quicktime movie of my slideshow from iphoto so that it includes the captions. I can see the captions fine if I view the slideshow within iphoto. After I export, all I get is images.