.opt file and converting to CAP

I am busy with a project where I will load several applets onto a Java Card.
The java files compile fine. However, when it comes to using converter, I need an opt file for each of these java files that were just compiled. Is there a tool that creates these opt files or can I manually create them?
I have created one manually. However, when the converter is used it gives the following error:
"error: input class directory c:\order\java\com\Comp\rappelle\com\Comp\rappelle not found."
It won't find anything there! As you can see, for some reason it adds "com\Comp\rappelle" after the initial "com\Comp\rappelle." I don't know what is causing this. I have gone over my compile.bat several times to ensure that vars are set up correctly, etc.
Am I missing something here?

Hi Wdicks,
You are defining wrong path for classdir parameters.
Let me show you the example.
This is for the wallet sample in our Javacard development kit provided by Sun
**********Wallet.opt***************
Line 0 -out EXP JCA CAP
Lien 1 -exportpath api_export_files
Line 2 -classdir samples\src
Line 3 -applet 0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x6:0x1 com.sun.javacard.samples.wallet.Wallet
com.sun.javacard.samples.wallet
0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xC:0x6 1.0
In Line 0 , i have mentioned the type of outputs
In Line 1, I have mentioned the folder name where all export files are. remember i am talking about those export file which are provided by Sun kit.
You have made Sun java card kit as JC_HOME.
Then api_export_files folder will be also in path
In Line 2, Now give the path where you have kept your Opt file
In Line 3, You will have the the applet, package and their AIDS.
I am able to get all the cap, export files.
They are working fine
Hope this will help you.
In your case you are appending packages. So be careful

Similar Messages

  • Open Photoshop 3 files and convert to TIFF or JPEG --- on the cheap!

    Hello,
    I have about a hundred large scans in PS3 format on DVD.
    I never use PS or other pro photo SW; only iPhoto.
    My last PS is v7.
    I run the latest Snow Leopard on my new MBP 17 iCore7.
    All I want is to recover these files and convert them to the highest quality and most accessible format without having to spend my $, only my time.
    Can anyone put me near this goal?
    ---h

    I'm not sure what you mean by "PS3 format"--do you mean they are psd files that were created in Photoshop 3? As far as I remember Photoshop 3 simply created standard Photoshop files that, if one chose to have extensions (which you didn't have to way back then) had a .psd extension. If the files are indeed Photoshop files, but without the extension, you can simply copy them off the DVD and add the .psd extension to them. Preview will usually open psd files. I do have at least one VERY old psd file that Preview won't open, it displays a note in English and French, that Photoshop 3 is required. It does open with Photoshop Elements 8 and the free GIMP. Why it won't open in Preview I don't know, perhaps because it has three layers, two of which are text layers. Other psd files with layers DO open in Preview, although they often look a bit peculiar, and files with just one layer, created at the same time, open fine. Also, iPhoto will generally open psd files, and even display one with layers correctly (as if it had been flattened), but will not handle files with alpha channels very gracefully, nor will Preview. The GIMP has no problem with layers nor alpha channels.
    Francine
    Francine
    Schwieder

  • Read linux lastlog file and convert to a String

    Hi
    I am trying to read the data from the lastlog file in Linux. I think this is a binary file encoded in ASCII. How would I go about reading this file and converting the binary data into a String and then displaying the data? Each bit of data is separated by a new line to distinguish between the different values.
    Many Thanks
    Sambo

    "Binary file encoded in ASCII"? Well, you'd have to find out what encoding was used and then reverse is.
    As for reading files in general, check here:
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Reading in any file and converting to a byte array

    Okay what I am trying to do is to write a program that will read in any file and convert it into a int array so that I can then manipulate the values of the int array and then re-write the file. Once I get the file into an int array I want to try and compress the data with my own algorithm as well as try to write my own encryption algorithm.
    What I have been looking for is code samples that essentially read in the file as a byte array and then I have been trying to convert that byte array into an int array which I could then manipulate. So does anyone have any sample code that essentially takes a file and converts it into an int array and then converts it back into a byte array and write the file. I have found code that is close but I guess I am just too new to this. Any help would be appreciated.

    You can read a whole file into a byte array like this:File f = new File("somefile");
    int size = (int) f.length();
    byte[] contents = new byte[size];
    DataInputStream in = new DataInputStream(
                              new BufferedInputStream(new FileInputStream(f)));
    in.readFully(contents);
    in.close();Note that you need to add in the proper exception handling code. You could also use RandomAccessFile instead of the DataInputStream.
    Writing a byte array to a file is easier; just construct the FileOutputStream, call write on it with the byte array, and close the stream.

  • Have an older Macbook Pro 10.6.8 tried to update it to XMavericks. Discovered that my microsoft apps are not compatible. Can I keep my files and convert them?

    Have an older Macbook Pro 10.6.8 tried to update it to XMavericks. Discovered that my microsoft apps are not compatible. Can I keep my files and convert them?

    Use a product such as LibreOffice, the iWork applications, or Microsoft Office 2008 or newer to open them.
    (107914)

  • How to read flat file and convert to xml throught OSB

    Hi ,
    Can somebody help how to read flat file and convert to xml in OSB.
    appreciate ur help.
    Thanks & Regards ,
    Siva K Divi

    if you're using the oepe with osb plugin (will be installed when you install the osb locally) and then in your osb project > rightmouseclick > new > MFL.
    that's it
    maybe you're trying to create it within an oepe installation which doesnt have the osb plugin ?

  • How to edit a Animated Gif file and convert to SWF

    I am using the creative cloud with fireworks. I chose the free trial with buying in mind if I saw it work properly. I simply want to upload an animated GIF file and then download it as a SWF file. I saw someone on youtube do this and it's not that if I get on the correct page I would not know how to do that but I just cannot find how to get the GIF into the software to edit. It has just simply put them in the creative cloud folder which can open them on IE> How do i make it available to edit and convert to SWF please? Thanks in advance.

    You will likely get better program help in a program forum
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How to upload a PDF file and convert it to OTF format

    We have come across rquirements like converting OTF to PDF but my requirement is to read a PDF file in SAP and convert it to OTF format for printing.
    Can anyone please help me with the Function Modules to do so.

    Hello,
    Try the following FM:
    CONVERT_OTF Convert SAP documents (SAPScript) to other types.
    Example:
    CALL FUNCTION "CONVERT_OTF"
    EXPORTING FORMAT = "PDF"
    IMPORTING BIN_FILESIZE = FILE_LEN
    TABLES OTF = OTFDATA
    LINES = PDFDATA
    EXCEPTIONS ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    Hope this helps.
    Reward if helpful.
    Regards,
    Vasanth

  • Opening an .rar file and converting flac files

    I am not sure this belongs in this topic area but since iTunes is the ultimate destination of this file I posted here.
    I have a .rar file. It is a compressed file when unzipped will have FLAC audio files in the folder. I need to know how I unzip the .rar file and then how to convert the FLAC file to AIFF or ALAC for use in iTunes.

    OK, you have 2 jobs ahead of you.
    First you need to uncompress the RAR archive. Find a tool that will do this on the Mac. Although I have not personally used it, UnRARx would be a possibility.
    When it is unpacked, you will see a folder containing the FLAC files. FLAC is the number one format for lossless audio, but iTunes is unable to handle it. So, use a conversion tool such as Switch for the Mac, and convert the files to AIFF, ALAC, or AAC. Add the converted files to your iTunes library.
    Then unless you need them for some non-iTunes purpose, you can discard the RAR archive and the FLACs.

  • Reading files and converting into xml structure

    Hi,
    In my application a client requests for the folder structure information to a server through RMI. The server needs to read files and folders on local machine and convert it into some structure (I am thinking of using xml) and send it back. For eg: I am planning to have Server send back something like:
    <directory name = "parentdirectory">
    <file name = "abc.jpg"/>
    <file name = "def.bmp"/>
    <directory" name = "subdirectory">
    <file name = "hij.jpg"/>
    <file name = "klm.bmp"/>
    </directory>
    </directory>
    It is just the names of the files I am interested in and not the contents. Is this a good approach of sending back the data as a string containg xml definition. Is there any better appproach in terms of performance, memory etc? I am currently planning on using DOM for construction of this structure. Is there a source code for reading and converting the folder structure into xml. Just for your information, the clients gets this information and shows it as a tree structure on the GUI.
    Thanks!!!!

    Is this a good approach of sending back the data as a string containg xml definition. It'll work.
    An alternative, more direct approach is to build a memory representation and send this as argument/return value of an RMI call. You'd need to write classes MyDirectory and MyFile; MyFile has just a name; MyDirectory has a name and a collection of MyDirectory and one of MyFile. Make these classes implement Serializable and you can send them over RMI.
    The effort to write those trivial classes would be less than to implement XML encoding/decoding, and also in terms of runtime performance and memory it will be hard to beat Java's serialization with anything XML-based. In this case I doubt performance/memory are relevant considerations though.
    If for some reason I'd go for sending XML Strings anyway, I wouldn't do the encoding/decoding myself; I'd use XStream to convert Java classes to/from XML and still end up writing the above two classes and be done.
    Sorry if you wanted a simple yes or no :-)

  • How to upload a PDF document from an e-mail attachment file and convert it to word document for edit

    I received an e-mail.The attachment is in PDF format. I would like to upload the file to convert it to word for editing.How to do that?

    Hi Quincy,
    You would need to save the file to your desktop and upload it from there for conversion using your ExportPDF subscription.
    Let me know if you need further assistance!
    Regards, Stacy

  • Read in a file and convert into Binary

    Hi there, i am new to java so plz give me a hand on this problem.
    I am suppose to read in a file(with whole bunch of different records), and what i need to do is convert the file into binary.....how do i do that??
    the original Q asked:
    Create a java program that will read the products file and write the products data into a java binary file. Adhere to good data typing conventions. That means, if a column in the input file is of type integer, then the data in that column should also be written to the output file in integer format. Same thing for String...
    Here is the code i have so far
    import java.io.*;
    class FileIO {
    /* Main method */
    public static void main(String[] args) throws IOException {
         FileReader file1 = new FileReader("test.txt");
         BufferedReader fileInput = new BufferedReader(file1);
         FileWriter file2 = new FileWriter("test1.txt");
         PrintWriter fileOutput = new PrintWriter(file2);
         String text;
         text = fileInput.readLine();
         //toBinaryString(text); <---i think there is something to do with the tobinary string but i am not sure
              System.out.println(text);
              fileOutput.println(text);
         // Close file
         fileInput.close();
         fileOutput.close();
    E-mail me directly if it's possible, thanks a lot~!!!!!

    Maybe not the answer the teacher is looking for, but I'd be highly tempted to point out that the file, regardless of what's in it, is already binary. Even if it's a text file, what do you think the characters are defined as? Bytes.

  • SonicStage/Atrac3 files--How do I import these files and convert them??

    This is my problem.
    I used to have SonicStage, I no longer do, but I found some of my old CDs that I made using that program, but the atrac3 files(I believe that's what they're called) aren't compatible with Mac, so now what do I do? I've never converted anything in my life, are there any apps I could download that will rip the unreadable files from my old CDs and convert them into usable mp3 (or whatever) files?
    This is all very foreign to me and any advice would be greatly appreciated.

    Re: SonicStage for Mac

  • Read an excel file and convert to a 1-D array of long, 32-bit integer?

    My vi right now reads an column of numbers as a 1-D array, but I need to input the numbers manually, and for what I'm trying to do, there could be anywhere between 100 to 500 numbers to input. I want the vi to be able to read the excel file and use that column of numbers for the rest, which the data type is long (32-bit integer).
    I have an example vi that is able to get excel values, but the output data type is double (64-bit real).
    I need to either be able to convert double(64-bit real) data to long (32-bit integer), or find another way to get the values from the excel file.

    Just to expand on what GerdW is saying.  There are many programs that hold exclusive access to a file.  So if a file is opened in Excel, the LabVIEW cannot access the file.
    What is the exact error code?  Different error codes will point to different issues.
    Make sure the csv file is exactly where you think it is and LabVIEW is pointing to the right place.  (I'm just going through stupid things I have done)
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Importing Mov. Files and Converting to Prores

    Hello everyone. I just purchased the Canon 5D Mark 3. I'm new to DSLR's. I'm not sure how to import and convert my footage to Apple's Prores files. I'm curious if there is a thread that will explain the process to import and convert the footage. To put things in perspective my last camera was a mini dv. Sony FX1. So I have been importing footage via firewire for a while now. Kinda lost since the world of Video has changed. Thanks for any and all help, advice, links and otherwise.
    Jeffery

    This is the typical tapeless workflow for FCP...including Canon 5D.  But, not sure it works for the Mark III...worth a shot:
    http://www.youtube.com/watch?v=AhDnyWFAM10
    If that won't do it...then use Compressor to convert to ProRes.  Or MPEG STREAMCLIP...or 5DtoRGB (that one takes a long time)

Maybe you are looking for

  • ON Query reporting

    hi,    i have heard about SAP -Querry reporting tool , is it any requirement to learn this tool.just clarification. regards pushpa

  • Text messages and Calls failing

    I recently bought a 4s and upgraded to the new iOS. Starting last week my text messages and outgoing callas are failing, but I have a strong signal. I've talked to att, who have checked my phone, the coverage in my area, and replaced my sim card. I'm

  • How do i set up ipod  to computer?

    how do i set up ipod  to computer?, when i first hooked up the ipod i pressed the sign up later button, but now i dont know how to set it up?

  • Need some help with CS3 or Creative Cloud

    I just bought a new camera and CS3 doesn't recognize my RAW files from the new camera. I tried to download the updates but my computer doesn't recognize the update files. SOO I decided to try out the creative cloud and the new CS6 but nothing will do

  • IPad 2 is blocked and I don't know the password..

    How to unlock?