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

Similar Messages

  • Cannot convert from java.util.Date to java.sql.Date

    In the below code am trying to get the current date and 60 days prior date:
    Date  todayDate;
              Date  Sixtydaysprior;
              String DATE_FORMAT = "MM/dd/yy";
              DateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
             Calendar cal = Calendar.getInstance();
              todayDate = sdf.parse(sdf.format(cal.getTime()));
              cal.add(Calendar.DATE, -60);
             Sixtydaysprior = sdf.parse(sdf.format(cal.getTime()));I have imported following files:
    <%@page
         import="java.util.Calendar,
                   java.text.SimpleDateFormat,
                   java.text.ParseException,
                            java.util.*"
    %>Shows up following error msg:
    Type mismatch: cannot convert from java.util.Date to java.sql.Date
    Thanks.
    Edited by: MiltonDetroja on May 22, 2009 11:03 AM

    Shows up following error msg:
    Type mismatch: cannot convert from java.util.Date to java.sql.Date
    I don't think this exception is thrown from the portion of code you have shown. As clearly specified in exception message, you cannot cast an instance of java.util.Date to java.sql.Date. you will need to do something like this
    java.util.Date today = new java.util.Date();
    long t = today.getTime();
    java.sql.Date dt = new java.sql.Date(t);

  • Mediator To Spring Error-Could not convert from java interface to interface

    Hi,
    I have a requirement to using a Spring component and my composite application would be File Read -> Mediator -> Spring Component -> File Write.
    I have to read a file and using mediator map the same to the Spring input and write the Spring component output to a file.
    I have created a Java interface ( Package Name - transformtospring , Interface Name - TransformInterface) and also created a Java Class ( TransformImpl ) which implements the Interface in this package. Saved all these artifacts in SCA-INF/src folder of the application.
    My Spring Bean configuration file is as follows ( saved the file in the same folder as composite.xml )
    <?xml version="1.0" encoding="windows-1252" ?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:sca="http://xmlns.oracle.com/weblogic/weblogic-sca"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool-2.5.xsd http://xmlns.oracle.com/weblogic/weblogic-sca META-INF/weblogic-sca.xsd">
    <!--Spring Bean definitions go here-->
    <bean class="transformtospring.TransformImpl" name="TransformBean"/>
    <sca:service name="TransformService" target="TransformBean"
    type="transformtospring.TransformImpl"/>
    </beans>
    I have created a Spring Context which uses the above Spring Configuration. When i tried to map the mediator output to Spring , i'm getting an error shown below.
    " Could not convert from java interface to interface type wsdl . Exception=java.lang.ClassNotFoundException transformtospring.TransformImpl "
    Please do let me know where exactly i'm doing wrong.
    Regards,
    Sri.

    Hi All,
    I could able to work this one out now !!!
    But i'm having an issue mapping the input to this service. The method signature for the service is as follows:
    public byte[] processData(byte[] input) throws Throwable{
    So the input for this Service is a byte array. Now i'm mapping the data from a File Input ( Read File - opaqueElement ) to this service directly ( using mediator ).
    Now when i have looked into the message in the Enterprise Manager, following is the message structure from Read File input to the service.
    <message>
    <properties>
    <property name="tracking.compositeInstanceId" value="10009"/>
    <property name="tracking.ecid" value="bcd04297e25136e7:4869a9c:13316255efc:-8000-0000000000001f79"/>
    <property name="tracking.conversationId" value="TJ9PCcbtu3S0DA0GuxsGx13RYUb1NxHNndfk2PC8ukk."/>
    </properties>
    <parts>
    <part name="parameters">
    <ns0:processCollaboration>
    <arg0>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bnMwOkFkZDJJbnB1dCAgeG1s bnM6eHNpPSdodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZScgeG1sbnM6 bnMwPSd1ay5jby5qZHdpbGxpYW1zLkFkZDJJbnB1dCcgeHNpOnNjaGVtYUxvY2F0aW9uPSd1ay5j by5qZHdpbGxpYW1zLkFkZDJJbnB1dCByZXF1ZXN0LnhzZCcPG5zMDpudW0xPjEwPC9uczA6bnVt MT48bnMwOm51bTI+MTY8L25zMDpudW0yPjwvbnMwOkFkZDJJbnB1dD4=+</arg0>
    </ns0:processCollaboration>
    </part>
    </parts>
    </message>
    and the corresponding response message ( No output ) back from the service is:
    <message>
    <properties>
    <property name="tracking.compositeInstanceId" value="10009"/>
    <property name="tracking.ecid" value="bcd04297e25136e7:4869a9c:13316255efc:-8000-0000000000001f79"/>
    <property name="componentName" value="ProcessCollab"/>
    <property name="tracking.conversationId" value="TJ9PCcbtu3S0DA0GuxsGx13RYUb1NxHNndfk2PC8ukk."/>
    <property name="compositeDN" value="default/CollaborationToSpring!1.0*soa_a8da1da7-f98f-4935-8d20-da9e7bc003cc"/>
    </properties>
    <parts>
    <part name="parameters">
    <processCollaborationResponse>
    <return/>
    </processCollaborationResponse>
    </part>
    </parts>
    </message>
    I have included System.out statements in my Java class , but its not printing anything in the logs.
    I'm under the impression that the underlying infrastructure ( mediator ) transparently encodes and decodes data from base64Binary to java byte array. So could anyone help me on this !!!
    Regards,
    Sri.

  • Could not convert from java interface to interface type wsdl ??

    i have a problem wheni have a problem when i develop bpel using mediator and wire to ejb service. When the mediator wire to ejb service, i found the error : Could not convert from java interface to interface type wsdl.... How to solve the problem?

    I followed the case closely (with the same name of classes, methods, etc), but still get the error: “Could not convert from java interface to interface type wsdl.Exception=nl.amis.calculator.Calculator”. I created a Java class to test the lookup and function correctly. However, when I try to wire a Mediator to this Reference, I run into an Interface Conversion Error. I’ve included the line javaInterface = “nl.amis.calculator.Calculator” in file composite.xml, but still get error. Could you help me?

  • How to convert from java.lang.Integer to int

    Could you please show me
    how to convert from java.lang.Integer to int?
    and how to convert from java.lang.Integer to String?
    Thanks,
    Minh

    Could you please show me
    how to convert from java.lang.Integer to int?
    and how to convert from java.lang.Integer to String?Tip: always keep a browser open on the API docs; if you've got a
    couple of MBs to spare, download the docs; it's very convenient.
    kind regards,
    Jos

  • 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

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

  • Why will CS4 not open DNG files converted from Olympus E-M1 raw files?

    For several years I have been able to use the DNG Converter to convert .ORF raw files from my Olympus E-M1 and then open them for processing in CS4. Suddenly CS4 quit recognizing these DNG files saying "Photoshop could not complete your request because Photoshop does not recognize this type of file"
    I have not changed any preferences. I'm using E-M1 v3.0, DNG Converter v8.3.0.141 on a Mac. I have deleted DNG converter several times, even reinstalled an earlier version but nothing changes.
    However, CS4 will open DNG files converted from Pentax raw .PEF files from my K-5. Weird. It's the Olympus raw DNG conversions that won't open.
    I can view the DNG converted files in question in Mac's Preview just fine but not CS4. Any ideas will be appreciated.

    Be sure the DNG Converter's compatibility is set to provide support for your version of ACR:
    Benjamin

  • Does converting from dvd to mpeg4 reduce file size?

    Ive searched over and over and cant find the answer to this.
    I ripped the DVD Bruce Almighty onto my computer using DVD decrypter. I then converted it using Videora Ipod converter. The ripped file was something like 6.5 gigs. The converted file is only 660MBs. Is this normal ?
    Also I have seen it happen opposite, where I downloaded a clip of a diamond store robbery and it started as a 9,791KB Windows Media Audio/Video file and after i converted it, it became a 40,990KB Mpeg-4 Movie file.
    Any help or explanation is greatly apreciated
    Oh and I watched bruce almight and it worked great, im definately not complaining that it took up less space, just curious of why and if the videora default settings are possibly converting to a smaller bit rate or something that is going to reduce quality when watching on ipod or itunes.

    yes thats compleatly normal. You're looking at 3 differant video formats that all compress differantly and efficiantly. The ipod uses Mpeg4 and h.264 which is a more efficiant version of mpeg4. What you have to rememver is when converting from other formats, the video becomes that new format and losses its old compression bit rate (how much data is prossesed per second) and format and gets a new bit rate and new format. Like when I edit video, its done in a format called DV on which 10 minutes of video takes 2 gigs. But the finished product becomes a dvd whichi can fit 1 hour of comparable video in the same space. Let me explain more.
    Mpeg2 is the video format of dvds. Mpeg2 is a pretty effiant codec but requires a pretty high but rate to be acceptable. Mpeg4 can do with less data and achieve around the same quality. Also you have to remember that vidora is resizing the video to a lower resolution making the video even smaller.
    As for a video getting bigger, thats normal as well. As I said is that the new file will achieve a new bit rate. Mpeg or wmv may need to be reencoded at a higher mpeg 4 bit rate to keep around the same quality of the original video. If you encoded the video at the same bit rate as the old video, youll loose alot of quaity form being double compressed.
    All this is hard to explain if you know nothing about video formats and how convertion works. Hope some of this makes sence

  • Converting from JAVA HASHMAP to PLSQL object or CLOB

    Hello All,
    My oracle version in 10.2.0.4 on a solaris V880 machine.
    Our Application Java SDK is 1.4.
    I am trying to pass in a series of XML (considerably huge for XML type column) from java application plsql which stores them into an oracle table with column as external BLOB. Since the contents are so heavy for each objects , using XMLTYPE column is not feasible.
    The xml files comes as either java hash_map or string which i have to pass as parameter to an Oracle stored procedure which stores as external BLOB in OS through a table.
    My first doubt is this the correct approach.
    My second doubt here is how to interpret java hash_map object within PLSQL when it is passed to it.
    Apologies if the question is silly since i am a new comer to java.
    Thanks in advance ,
    Vijay G

    vijay S P G wrote:
    If i have plsql collection with a varchar2 and a blob as record type then can i directly pass the java hash map to the procedure having parameter datatype as the above said record type ?Of course not. Obviously the first reason for that is because the "blob" needs to be a file path and not a blob.
    Second reason is no databases that I know of take a hash data type. Some take arrays. But I doubt that is worth the trouble.
    You have a collection of name value (path) pairs. Iterate over the collection and for each name do an insert of the name and path.

  • Converting from Managed to Referenced Library-File Structure?

    I'm about to convert my fully managed library (170GB) in Aperture 3.6 to a referenced library.  I understand I select the files and then relocate the masters.  What's the best way to do that if I want to maintain some semblance of the Aperture files/folders structure in the Finder environment?  Wha't the best way to select all files- just go to "Photos" folder and select all?
    I understand that the file structure in Aperture should remain unchanged.  What I don't want to happen is for all my photos to just be dumped into a folder on my hard drive with no organization.  Within Aperture they are primarily stored in folders (years) containing projects (months) which have albums (various shoots in a given month).  If I select all photos in library, does Aperture recreate its internal folder, project, album structure as folders in Finder? 
    As I recall, there is an option when relocating masters to put them in various folder structures.  Is there an option to keep the internal Aperture folder structure?  I'd like to make the managed to referenced conversion in as few steps as possible and ideally maintain the same or very similar folder structure.
    Thanks, Steve

    Images are not files.
    Images are what you see in Aperture.
    Files are data containers, represented in various ways in the OS X Finder.
    Aperture is a database of Images.
    Finder is a database of files.
    Just as the structure of your Aperture Library ("Library" = database; to the detriment of their users, Apple insists on cuteness over accuracy) is for you to create to meet your needs, the structure of your Finder database is for you to create to meet your needs.  Many OS X users' file needs are similar, and so OS X comes with Finder pre-designed and populated.
    Concerning yourself about the _file_ organization of your Images' Originals is, imho, time wasted.  You didn't care about it when they were managed.  There is little reason to care about it when they are referenced.
    I detail some of this in this reply to a similar question.
    Do whatever comforts you.  But note the following:
    - You cannot (as Frank has already answered) duplicate in a file manager the structure you have in your Image manager.  The Images in Aperture are not files, and in important ways they are not filed like files.
    - Aperture provides robust tools for managing your Images' Originals.  You can move them in and out of the Library at any time, and you can relocate them to another location outside your Library at any time.
    - Don't ever use Finder to perform any operations on your Images' Originals.  You should use Aperture and use only Aperture to perform any operation (other than back-up) on your Images' Originals.
    - Speaking of backing up: you must backup Referenced Originals yourself.  Neither Aperture's Vault feature, nor backing up your Library, backs up Referenced Originals.
    Unless you have specific reasons for doing otherwise, I recommend sticking to "one Project for each shoot", and, if referencing your Images' Originals, filing them under a top-level Finder folder by Project, with one Finder folder for each Project.

  • Converting from WMA to MP3 changes file locations

    When I try to import my WMA files into the iTunes library, it converts them to MP3, which is OK, but iTunes "organizes" my music folder in it's own twisted image, even though I have the option "keep iTunes music folder organized" UNCHECKED. Does anyone know how to import WMA files and have them stay in the same place once they've been converted to MP3?

    hi Alex!
    Does anyone know how to import WMA files and have them stay in the same place once they've been converted to MP3?
    just trying to clear something up ... do you have "Copy files to itunes music folder when importing" unchecked too?
    love, b

  • Trouble with TO_TIMESTAMP converting from Java Date

    I have a Jelly script that initializes my database. I have some "TIMESTAMP" columns that I want to set to the current time. I set a variable at the top of the script to the current time, so I can use that throughout the script.
    The resulting excerpt from my "INSERT" statement looks like this:
    ... VALUES (1, TO_TIMESTAMP('Wed Aug 30 09:21:02 PDT 2006', 'DY MON DD HH:MI:SS TZD YYYY'))
    This complains: "date format not recognized"
    I got these format descriptors from the Oracle documentation. I made sure that all of them had "Yes" in the "Specify in TO_* datetime functions?" column. I then found another page that describes "TO_TIMESTAMP", and it listed all of these except for the "TZD".
    Is it possible to use a date/time value in that form (the example shown here) to insert into a timestamp column? If necessary, I could convert it to a different form, but it's somewhat awkward to do that in a Jelly script.

    this query is perefectly working for me.
    INSERT INTO ZIPCODE ( ZIPCD_ID, VER, CREATED_BY, CREATED_DT, UPDATED_BY,UPDATED_DT, CTY, CTY_ABBR, ST, ZIP_CD, ZIPCD_EXT )
    VALUES ( 311929, 1, 'DC',
    TO_TIMESTAMP('8/29/2006 3:09:53.000000 PM','fmMMfm/fmDDfm/YYYY fmHH12fm:MI:SS.FF AM'),'DC',
    TO_TIMESTAMP('8/29/2006 3:09:53.000000 PM','fmMMfm/fmDDfm/YYYY fmHH12fm:MI:SS.FF AM')
    , 'FS', NULL, 'GA', '31314', NULL);
    my version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi

  • 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

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

Maybe you are looking for

  • Odd superscript/subscript behavior

    Hi all I wanted to format a subscript character in Pages today, but both subscript and superscript were grayed out in the tool bar and also in the menu (Format>Baseline). however, the keyboard shortcut "Control - Command- -" worked fine. Can anyone e

  • How to format an external hard disk Mac Os Extended (Journaled)?

    hello I connect an external hard disk (2.5' IDE Western Digital Scorpio Blue, WD2500BEVE) via USB or FireWire to my Mac mini. The Disk Utility tool shows an external disk drive of 128 GB - but the disk has 250 GB. How can I format the external USB/Fi

  • Ruler tool error 48 on XP CS5.5

    Re: Ruler Tool- Error 48: File or folder does not exist i'm getting the exact error another posted on the Mac forum but I'm using Windows XP with CS5.5 error 48: file or folder does not exist line: 31 -> $.evalFile(g_StackScriptFolderPath + "Geometry

  • Fagll03 is taking more 45 minutes to execute please help is it justified...

    Dear Gurus Our fagll03 report  is taking more than 40 minutes to execute with 4 company codes one year data and one g/l local receivables... its been almost 2 and a half year since we have gone live...the result is some 150,000 line items... basis co

  • Adobe Updater 5 Error

    I am a user of Adobe Design Premium CS3, and haven't had the chance to update my software lately. So, yesterday I tried using adobe updater 5, but it said that it had to install an "updater update". Promply, an error message showed up, telling me tha