Generating the .CAP, .JCA and .EXP files.

Hello;
I have downloaded the java_card_kit-2_1_2 to ‘C:\java_card_kit-2_2_1", and I tried to compile HelloWorld application that shipped with its distribution. I was successfully able to compile the file HelloWorld.java, but I am having lots of problems in generating the .CAP, .JCA and .EXP files.
I tried to follow the instructions in jcdk2.2.1 user guide, but of no use.
This is what I am basically doing:
_Step1) Setting my Environment Variables as follows:_
*set JC_HOME=C:\java_card_kit-2_2_1*
*set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_16*
*set PATH=.;%JC_HOME%\bin;%JAVA_HOME%\bin;%PATH%*
_Step2) Compile the java file_
The package of HelloWorld.java is : src.com.sun.javacard.samples.HelloWorld, so to compile I use the following command line:
*javac -g -target 1.1 -source 1.3 -classpath .\classes;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard\samples\HelloWorld\*.java*
_Step3) Converting_
I have the class file generated in the package folder: src.com.sun.javacard.samples.HelloWorld, I generated an .opt file as follows:
+-out EXP JCA CAP+
+-exportpath .+
+-debug+
+-applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1 src.com.sun.javacard.samples.HelloWorld.HelloWorld+
+src.com.sun.javacard.samples.HelloWorld 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0+
Finally, the command line for conversion is:
*set _CLASSES=%JC_HOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;%JC_HOME%\samples\classes;%CLASSPATH%;*
*"%JAVA_HOME%\bin\java" -classpath %_CLASSES% com.sun.javacard.converter.Converter -config src\com\sun\javacard\samples\HelloWorld\HelloWorld.opt*
After successfully executing all these lines, I get the following error:
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
*+error: class HelloWorld does not belong to package src.com.sun.javacard.samples.HelloWorld.+*
conversion completed with 1 errors and 0 warnings.
PLEASE HELP! I also tried adding -classdir to the opt file, but still did not work.
The whole point behind this exercise is to import a javacard framework of version 1.0
Really appreciate anyone's help! Thanks in advance.

Thank you Shane, but my claSs file is indeed saved in "C:\java_card_kit-2_2_1\samples\src\com\sun\javacard\samples\HelloWorld"
Now since I am running my command lines from C:\java_card_kit-2_2_1\samples, so I guess that the class directory is:
src.com.sun.javacard.samples.HelloWorld
Right?

Similar Messages

  • How to proceed further once the explain plan and trace files are generated?

    Hi Friends,
    I need to improve the performance of on of the views that i am working on.
    As suggested in the thread - http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0 , i gave generated the explain plan and the trace file.
    From the explain plan, we can see the expensive operations for the query.
    Can any one please tell, how to proceed further from here on i.e. how to make this expensive operations less expensive?
    For ex: FULL TABLE SCAN might be an expensive operation when the table has indexes.In such cases, how can we avoid such operations to make query faster?
    Regards,
    Sreekanth Munagala.

    Hi Veena,
    An earlier post by you regarding P45 is as below
    Starter report P45(3) / P46 efiling for UK
    from my understanding though i have not worked on GB Payroll you have said that you deleted IT 65 details of leaver,however there must be clusters generated in system from where the earlier data needs to be deleted and may be that is why you are facing the issue.
    In Indian payroll when we execute text file for efiling of tax after challan mapping all the data compiles and sits in PCL cluster and therefore we are unable to generate form 16 with proper output,here we delete the clusters and rerun again the mappings and then check form 16.
    Hope this might help you,Experts have suggested you earlier also,they may correct me for this.
    Salil

  • Problem in generating the Oracle report6i to PDF file.

    Hi guys,
    I had encounter problem in generating the Oracle report6i to PDF file. The Amount column once the report is genrated to PDF it double the amount reflected in the PDF file report. See sample scenarios below:
    Can anybody help me explain this issue how it really happens?
    Example:
    FROM ORACLE REPORTS6i :
    ITEM # PRODUCT AMOUNT
    1 PRINTER 5,000
    2 KEYBOARD 2,000
    TO PDF FILE :
    ITEM # PRODUCT AMOUNT
    1 PRINTER 10,000
    2 KEYBOARD 4,000
    Thank you.
    Lala

    Hi "LawlordsX",
    I do understand the issue, something seems to have messed up the Shell Extensions on the 2 Lenovo laptops you talked about.
    Could you please check if the 2 m/c(s) have an additional version of Office installed in parellal to Office 2007, say Office 2010 trial pre-installed on them. This can be verified via CONTROL PANEL > PROGRAMS AND FEATURES > Check for the versions of Office installed. If yes, please let me know the additional Office software version/type.
    Also, could you be more specific about the bitage of the system, i.e. whether the Windows 7 m/c is 32-bit or 64-bit?
    This can be checked from CONTROL PANEL > SYSTEM > Under "System" section check for "System Type".
    If converting multiple files at a time to PDF is an issue, as an alternate you could use FILE > CREATE > BATCH CREATE MULTIPLE FILES to workaround the problem for the time being.
    Thanks!

  • I have chosen to fil migrate from old ibook to new MacBook Pro using Time Machine after establishing admin account. I now have two admin. accounts and wish to delete the later one and transfer files manually. I am worried I will loose both accounts. ??

    I have chosen to fil migrate from old ibook to new MacBook Pro using Time Machine after establishing admin account. I now have two admin. accounts and wish to delete the later one and transfer files manually. I am worried I will loose both accounts. ??

    Use the Office for Mac and ignore using Parallels for that. If you have PC only apps you have to run that are MS Windows only then consider Parallels. Just transfer your main PC, using Migration Assistant.  If you don't know how then simply read over Pondini's article called Lion or Mountain Lion Setup Assistant tips and look for the section on migrating from a PC. Millions have done what you are about to, it's far from leading edge these days, if you go to an Apple Store to purchase they will offer this as a service, something you might be interested in.

  • I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF file

    I am having the same problem I think.  With mobileme you simply copy documents to the idisk folder and then synch.  I cannot seem to sink that folder anymore.  Any idea as to how I can simply copy folders to icloud and then access the MS Word and PDF files on my iphone?

    Apple never bopthered to explain that this would happen
    Your iDisk is still accessible after moving to iCloud in exactly the same way as before. Nothing is deleted until June 30th 2012.
    , so I could easily have lost ALL of the files I kept on iDisk.
    No, you couldn't. Firstly, nothing was deleted from your iDisk. Secondly, any files stored on your iDisk should never be your only copy. Even if your iDisk spontaneously combusted, you should keep local backups elsewhere.
    Does Apple WANT people to move their storage elsewhere and stop paying Apple for it?
    Yes. Apple doesn't provide such a service anymore, nor are you paying them for it.
    Apple has made no effort to suggest remedies for the problem it has given iDisk users
    They've provided instructions on how to download your files from your iDisk. What you do with them after that is your choice.

  • Load the External text and css file for more frames

    hello..
           I created one Movie file. In that I load the External text and css file in first frame and display the first variable value in one text box.
    And then in 2nd frame I use another one text field and display the 2nd variable value like that I want to load the more variable in more textboxes with different frames.
         I loaded  for first variable value in first frame. But I don't know how to do next frames like that..
         Help me...

    You need to load them in the frames they are in.  You can store the loaded data in variables in frame 1, but you will need to extend that layer so that whatever is stored is avaliable in other frames.  The code to load the data into the other textfields can then be done in the frames where it is needed.
    There are other options, such as not using other frames for content or having all of them in frame 1 and making them invisible until you get to the other frames where they get turned visible.

  • To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    Thanks for the reply.
    But this library doesn't contain any sample .cfg and .dat files which can be read and understood. Can you please provide the same?

  • Dynamically generating the ssrs dataset and filling the data into the dataset and binding it to ssrs report dynamically

    I have a work to do, in ssrs we are using server reports in our project. i am looking for dynamically generating the ssrs dataset and filling the data into the dataset and binding the dataset to ssrs report(RDL) dynamically.
    Getting the dataset dynamically has a solution by using Report Definition Customization Extension (RDCE), but the problem is binding that dataset to the report(RDL) dynamically was not there.
    Here is the reference for RDCE http://www.codeproject.com/Articles/355461/Dynamically-Pointing-to-Shared-Data-Sources-on-SQL#6
    I looked for binding the dataset to the report(RDL) dynamically and searched many sites but i did not get the solution. Can anyone help me here.
    Is there any custom assemblies or any Custom data processing extensions to work around. Please help.
    Thanks in advance

    Hi Prabha2233,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to embed the Word Document and PDF file into Crystal report?

    How to embed the Word Document and PDF file into Crystal report?
    I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
    Is there any solution to show word doc / PDF file in CR?

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • OSD for the Caps Lock and Num Lock is not appearing.

    Hi all,
    I recently discovered that the Caps Lock and Num Lock OSD has stopped appearing when I activate/disactivate these functions. The functions still work, just that the notifications do not pop up.
    All the rest of the OSD notifications still DO work, like volume, ThinkLight, brightness, etc.
    I've checked the on-screen display settings in Control Panel and found that it set to 'enable' with fadeout at 3 seconds.
    I've turned it off and on to 'reset' it but to no avail.
    Help, please.
    Thanks in advance.

    They're not supposed to show up on T400's because the indicators exist as physical indicators on the lower bezel.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • Submitting an image file for indexing generates the tokens "IMAGE" and "1"

    This is a problem because the user is able to submit any file through a web interface, and we want to determine when there is zero output from the indexing process so we can warn the user that the file they submitted has no indexable content.
    I'd rather keep the detection algorithm simple: currently it checks to see whether any tokens were indexed for the record the user just edited, and IF there were NO tokens, the user is warned that the file they submitted contains no indexable words. But if ctxhx.exe generates the string "Image 1" when someone gives it (for example) a jpeg file, that's not going to work.
    So my questions are these: How do I prevent ctxhx from generating any tokens when someone gives it an image file? And if that's not possible, how can I include logic in a batch file to detect an image file and prevent ctxhx from handling it? (Since the files are renamed without extensions when indexed, I can't determine file type from extensions). I know there's a command-line program called TestForPDF.exe, which I found at http://www.oracle.com/technology/products/text/htdocs/altfilters.htm; is there a similar program (perhaps TestForImage.exe), or instructions for creating such a program?

    I finally resorted to using the "format column" feature of the context index. The code in my front-end looks at the extension of the file submitted by the user, and sets the value of the format column to "IGNORE" before it tries to resync the index. It seems a bit kludgy, but it works.

  • Wesite Login and navigate to reports page and pass parameters to the forms page and download file

    Hello,
    New to C# scripting in SSIS. Everyday I download data file from a website. I need to schedule a page to include a script to auto download from the website everyday by navigation to reports page and submenu for a particular report. After I click it opens
    a webpage where I need to select my criteria and download the file to a table. This is what so far I got
    Object mySSISConnection = Dts.Connections["websiteConnectionManager"].AcquireConnection(null);
    MessageBox.Show("Success")
    I got the success message. After login, I need to navigate to select reports and then from submenu select the everyday report and pass the input parameters to the webpage and download the file and export to a tables. Any help. Not much coding I know. Learning!!
    Any help really appreciate it.
    Thanks
    Jagan

    Whoever instructed you to so is not prudent, once the report definition changed the package will break.
    This is not the proper data interexchange.
    Here is though an example on how to generate a SSRS report and download as a file: http://sandeep-aparajit.blogspot.ca/2010/02/how-to-execute-and-save-ssrs-report.html
    And then to load the file into OLEDB destination http://www.daimto.com/ssis-lesson-2-first-package/
    Arthur
    MyBlog
    Twitter

  • Generate the current URL with css file

    Hello everybody,
    I just added a QRCode App on my Custom List page and I'm trying to create a css file that
    it can generate the current URL where the QRCode App is opening.  The QRCode App allows to add css file which Indicates
    if I want to specify a custom CSS file URL. The QRCode opens with each List item. 
    Below is the code that I've been trying to use:
    <ul >
        <a href="">Link </a>
    </ul> 
    *This code shows the current URL. However instead showing the the URL, it shows a Link to the current page. Can someone help me with that? 
    Link for the QRCode App:
    http://office.microsoft.com/en-us/store/qrcode-app-for-sharepoint-WA103699711.aspx
    Thanks!
    App Part properties
    When you're editing the app part properties, you can change the following custom properties:
    Name
    Category
    Type
    Description
    QR Code Text
    QRCode Settings
    String
    QR code
    associated text or url. By default, this value is the host web url.
    QR Code Width
    QRCode
    Settings
    Integer
    QR
    code width. Default value is 200 px.
    QR Code Height
    QRCode
    Settings
    Integer
    QR
    code height. Default value is 200 px.
    Render Mode
    QRCode
    Settings
    Enum
    QR
    code render html method. The value could be canvas or html table. Default value is Cancas.
    Custom CSS File Url
    QRCode Settings
    String
    Indicates
    if you want to specify a custom CSS file URL.
    flavio

    hi
    what do you mean by current url? If url of current page is not what you are looking for, then is it url of current site?
    As you use app, I guess you are working with Sharepoint Online and can't use server side code? If this is the case, then check the following post:
    How to get URL of current site collection and other server side properties on client site in Sharepoint. Briefly you need to use OTB _spPageContextInfo object and set href attribute of your link in javascript:
    <ul>
    <a id="foo">Link</a>
    </ul>
    <script type="text/javascript">
    document.getElementById("foo").setAttribute("href", _spPageContextInfo.siteAbsoluteUrl);
    </script>
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Unable to generate the source while having xsdconfig file

    Hello All,
    I am trying to generate the source using ant script and I have a .xsdconfig file
    in the same folder as the XSDs. I am getting the following error:
    [xmlbean] error: Document /home/xsd/Development/config.xsdconfig is not an xsd
    config
    file
    I am attaching the .xsdconfig file just in case if you want to see what I am doing.
    Help appreciated.
    Thanks in advance.
    Kiran
    [config.xsdconfig]

    Hi Kiran,
    Did you get the solution to your problem...
    I am getting the same problem
    Please help
    Regards
    Manish Jain
    "Kiran" <[email protected]> wrote:
    >
    >
    >
    Hello All,
    I am trying to generate the source using ant script and I have a .xsdconfig
    file
    in the same folder as the XSDs. I am getting the following error:
    [xmlbean] error: Document /home/xsd/Development/config.xsdconfig is not
    an xsd
    config
    file
    I am attaching the .xsdconfig file just in case if you want to see what
    I am doing.
    Help appreciated.
    Thanks in advance.
    Kiran

  • How to delete the heapdump, Javacore and Ariview files

    Hi all,
    i got the problem with the heapdump and javacore files
    the problem is /usr directory we assigned space of 17 GB, after some days it got filled up, so we deleted the heapdump, javacore and arciviews in /usr/sap/SID/<instance>/j2ee/cluster/server0 directory. now it was showing the 35% of space is full, after one hour again it was showing 100% no space. but in the directory there is no heap dump and javacore files.
    my question is other than this any where else it was creating the heapdump, javcore and arciviews
    can you please help me out
    Thanks and Regards
    Dileep
    Edited by: Dileep P on May 6, 2008 1:05 PM

    There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.

Maybe you are looking for

  • Listener  errors in logs  TNS-001184 TNS-12502

    Oracle Enterprise Edition 10.2.0.3 HP-UX 2 Node RAC Hi I have seen repetitive errors in listener log file of one of our databases. The errors are like this, 07-DEC-2010 12:35:27 * service_register * EXS1 * 1184 TNS-01184: Listener rejected registrati

  • HT1229 How to save photos (iPhoto) on external HD, delete on internal HD

    To make room on my internal hard drive, I want to save my iPhoto library on external hard drive and delete some events from my internal hard drive. I don't want to lose them on the external hard drive too.  Is this possible?

  • Outlook 365 converting text boxes into images

    Hello, When sending out an email containing text boxes with text, links and images inside, people receive it as images. It does not matter if you created the email as HTML or Rich Text. Same behaviour both cases. Is there any way to avoid this issue?

  • Can't install any OS in Presario SR1319RS - please help

    I have "inhereted" a HP Presario SR1319RS from my friend. The PC was working well until it got a virus. He gave it to me because he bought himself a new one. I deleted everything, including the System Recovery (F10) partition. He did not have the ori

  • Holder of two positions, reporting to multiple managers in Travel managemen

    Dear Consultants, Our configuration is as follows: We have implemented Travel Management in our organization. A Person is assigned %70 capacity of  Position A, and is assigned %30 capacity of  Position B. Position A is reporting to Position X and Pos