Desperate help needed with writing files

I need to know how i can write files with an applet to a directory so that i can retrieve the files for later use. I need to know how to do this step by step as i am a beginner. i've tried looking for tutorials and i just can't seem to get it working.
can somebody PLEASE provide me with some valid info here as i'm sure that many others have exactly the same problem and can refer to this topic.
much appreciated.
thnx

You will need a certificate to sign the Applet with.
here is a rehash of the script I use to to this...
CERTIFICATE_FILE_NAME is the name of your certificate file.
c:\windows\.keystorefile is the path & name of your keystore
jar cf  tmp.jar *.class *.gif *.jpg *.au
jarsigner -keystore c:\windows\.keystorefile -signedjar YOUR_DESTJARNAME.jar tmp.jar  CERTIFICATE_FILE_NAME
del tmp.jar
del *.classThis is excatly what you need to do and your file writes will work.
Now you may need to tweak your getImage to find the files within the
jar but thats another story.
(T)

Similar Messages

  • Help needed with .asp files

    I am not sure what I am asking or what I need to do, so please bear with me, thanks.
    I am helping out with a site that has one dynamic page utilizing a database with an .mdb extension.
    Previously hosted on a site with ASP (not sure which version).
    New host has MySQL with PHP (?)
    I would like to be able to rework the one dynamic page in DW, using .php. I am not able to upload the .mdb file to my localhost MySql area.
    It all comes down to the database.....
    Is there a way to convert the .mdb file to one with an .sql extension?
    Or am I taking the wrong approach?
    Thanks,
    Melissa

    >Previously hosted on a site with ASP (not sure which version).
    >New host has MySQL with PHP (?)
    Are you sure the host doesn't also support .asp?
    >I  would like to be able to rework the one dynamic
    >page in DW, using .php.  I am not able to upload the
    >.mdb file to my localhost MySql area.
    An mdb file is MS Access. There are conversion utilities that will convert between the two dbms's, but if the schema is not complex you can simply build the new database in MySQL, export the data from access and then import it.

  • Desperate help need with Document Listener

    I'm working on a very cool freeware Java text editor, that is working beautifully, except for the code used to change the color of reserved words, etc, on the fly...
    At the moment, I use a documentlistener. When text is inserted, I need to color some of that text automatically. However, when I try to call setCharacterAttributes in DefaultStyledDocument, it causes a runtime exception, Illegal State Exception (Attempt to mutate in notification)>
    I understand how this exception is caused, but how do I get around it?

    Thanks for the replies. They were very helpful, and I have now managed to sort the problem, although in a different way that involves using the key listening class you can add to containers...
    The java editor is called j-Scribe, and is a text editor dedicated to java. I've designed it to be more user friendly than other text editors, with a useful interface. The code dispplay is all highlighted, and clicking on a brace collapses that section of code, to make larger classes easier to work through... There are also some nifty filemanagement windows, including a history pane similar to IE6, and one click access to all open files, and one click access to all of their save and close functions... There are wizards to automate creation of certain elements of code, and eventually a number of intelligent features will be added. The program makes extensive use of xml to store all of the information generated by the program.
    I'm working on the alpha version right now, for release in about two weeks. The beta will be out three - four weeks after that, and the release should be late September / early October time...
    If you're interested, e-mail me and I'll add you to the list for the alpha and beta test releases...
    [email protected]

  • Help needed with jar file

    hi, first of all sorry if my post is in wrong forum...but my application is done using swing so i am posting this here....and regarding my question...
    I have made an GUI using Java swings and my application is working fine. Now i want to make an executable jar file for my GUI. I have read some tutorilas on making jar files and this is what i have done...
    i have created a manifest file called mainClass.txt which has
    Main-Class: MainWindow ,where MainWindow is my main class name.
    Then i ran the jar utility with this command line:
    jar cmf mainClass.txt example.jar *.class
    With this line, I told jar to create a JAR file (option c) with modifications to the manifest file (option m) as specified within mainClass.txt, naming the JAR file (option f) as example.jar and including everything that matches the pattern *Class
    everything is file till now but my problem is ...I have some library files from JFreechart software included in my GUI to generate barcharts..How can i include these library files in my example.jar file..
    Kindly help me
    Thanks
    byee

    I had this problem too. I ran my program out of JCreator and it worked flawlessly. I jarred it up into and Executable Jar and I would get a runtime error explaning I have not included the correct libraries.
    What I did was look at the error, for example say it said something like:
    org.uhoh.PathSys ClassDefNotFound (or something similar to this)
    What I did was extract the library that contained that class file. Then in my project file where I kept my classes I made the folder org, then in org I made uhoh. Inside uhoh I copied over PathSys.class.
    I hope I addressed the problem you speak of. I am only a novice but this is how I figured it out. If anyone knows a better way let us know =D

  • Help needed with audio files in pdf

    I added mp3 audio files to a multi page pdf document via Acrobat Pro and the files play fine for me when I open the pdf. My client, however, doesn't even see the audio player rectangles after opening the pdf. Is there something I'm missing to make these files play for everyone who opens the document, every time? My client prefers that the audio files be embedded in the pdf, rather than using links.

    Hi The CountryCamera,
    Do you know how your client is opening the PDF files with the embedded audio (Reader, Acrobat on Mac OS or Windows)?
    If your client is on Mac OS, please check out this thread:  Re: Audio files not showing/working on a Mac - solution?
    Best,
    Sara

  • Help needed with Response File

    Hi,
    I am trying to perform a silent installation of jre 1.4.1 international version.I have created the following Response File .But I am getting a result Code= -3 when I use
    start /w c:\j2re-1_4_1_01-windows-i586-i -s -a -s -f1c:\setup.iss -f2c:\setup.log
    (indicating that the required data is not found in the .iss file).Is there something missing in my Response File?
    [InstallShield Silent]
    Version=v6.00.000
    File=Response File
    [File Transfer]
    OverwrittenReadOnly=NoToAll
    [DlgOrder]
    Dlg0=SdLicense-0
    Count=2
    Dlg1=SdAskDestPath-0
    [SdLicense-0]
    Result=1
    [SdAskDestPath-0]
    szDir=C:\jre1.4
    Result=1
    [Application]
    Name=Java 2 Runtime Environment, SE v1.4.0_01
    Version=1.4.1
    Company=JavaSoft
    Lang=0009

    We use a different method...
    Unzip the .exe file. You'll get Disk1 directory with a setup.exe file in it. Run setup.exe /s and it will install the J2RE in silent mode.

  • Help needed with DWT file

    Please can you help, made initial template for my website but now I want to change template so I can edit meta tags (tags were originally an unetitable area).
    When I apply my example below in the DWT file and apply to all pages the meta tags disappear.
    Please can you help.
    Currently have..
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="keywords are here" />
    <meta name="description" content="description is here" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Title</title>
    <!-- TemplateEndEditable -->
    <link href="../css-file/css.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    </head>
    And tried this but meta tags in pages disppear..
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css-file/css.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Title</title>
    <meta name="keywords" content="keywords are here" />
    <meta name="description" content="description is here" />
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    </head>
    As always, thanks in advance.

    I've placed another example below, would this be correct.
    Move the charset <meta> tag and link to the style sheet below the title like this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Title</title>
    <!-- TemplateEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css-file/css.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    </head>
    When you say don't put anything in the head of the document do you also mean taking out the title and reference to the external css file.
    No, I was responding directly to your question about the keywords and description. It's perfectly OK to put other things in the non-editable part of the <head>. But anything that you want to be able to change in child pages should be added directly to the child page. That's why Dreamweaver creates the second editable region called "head". By default, it's empty; but it's where you add things like keywords, extra style sheets, and JavaScript to individual child pages.

  • Desperate Help needed with the 4Hi 8x16x48x

    Hi all,
    that my first post. I was wondering if any of you guys could help.I've got a 48*16*48*. I've used it for a couple of times but now it doesn't seem to work, it takes ages to read and sometimes it doesn't detect the Cd.Is something wrong with the writer itself or the nero software?can anyone of you help? ?(  ?(  ;(
    thanks
    kaz

    The CDRW is faulty. Try to claim warranty if the drive is new.

  • Urgent help needed with class file platform transfer

    Hi,
    I am working at home on Java in the windows (2000) system. Now I have compiled a java source code which compiles fine. This is an applet and works fine.
    However, when I am uploading the files( class files generated and the html file) to the Sun Unix system, the applet does not work. My first question is: Does this class file generated in Windows system not transferable in the Unix system?
    At this point, I uploaded the java source file to the Unix system. The source file has been created in Textpad in the Windows environment. Now using telnet I used the javac command to compile the source file in Unix system. Now, I am seeing three errors which was not the case in the Windows environment? I have no idea why the same source code is working on one platform and producing error in another?
    Any help is highly appreciated. Thanks. Regards.

    What are the errors?

  • Help needed with deleted files

    Hi all
    Still a novice, though have been using Aperture successfully for a few weeks now...
    I have somehow (and I am still trying to go back and work out how) managed to delete a whole named project with all the photos in it.
    I went from one project to another, in order to continue editing, but when I used the control back arrow and delete button to delete 1 photo that was highlighted, it deleted all the photos and the project (or so it seems).
    Where can it be, is it lost for ever, and if it isn't how can I retrieve it?
    Thanks
    Ruth

    Any other ideas? Still can't find them.....reading the manual to see if that gives me any more clues too!
    Despairing now!!
    Please help!

  • Java Web Start help needed about writing files?

    Hi there! I have this java web start app. i have implemented the File Open service succesfully using the JNLP API but i cant seem to get the File Save Service to work. Basically I have an object in the system which I want it to be serialised to a file on the user's desktop.
           FileSaveService fss;
             try {
                 fss = (FileSaveService)ServiceManager.lookup
                                       ("javax.jnlp.FileSaveService");
             } catch (UnavailableServiceException e) {
                fss = null;
            if (fss != null) {
                try {
                FileContents fc = null;
                FileContents newfc = fss.saveFileDialog(null, null,
                fc.getInputStream(), "newFileName.txt");
                FileIO io = new FileIO();
                io.write("new123.nod", r.getTree());  /// my object is r.getTree() !!!
                } catch (Exception e) {
                      e.printStackTrace();
            }My Object (r.getTree) is basically an array. But I cant save it because the saveFileDialog method accepts ObjectInputStream as a parameter?! Any ideas? Thanks!
    Edited by: player123 on Jun 11, 2009 8:56 AM

    does anyone know? It actually doesnt even open the Save dialog?? why is that?

  • Desperate help needed with quote create issues ...

    Dear SD experts
    I am trying to create a quote using 'BAPI_QUOTATION_CREATEFROMDATA2' in the test mode.
    I am entering the bear minimum required (without opening any parameters other than the default
    which are QUOTATION_HEADER_IN and QUOTATION_PARTNERS.
    The problem that I am seeing is with QUOTATION_PARTNERS-ITM_NUMBER.
    When I give QUOTATION_PARTNERS-ITM_NUMBER = '0000000' and run, I get a bogus
    message that the quote (with a number assigned) is created. But when I try to open using VA23
    it is not and even the table 'VBAK' doesn't have an entry for this.
    However when I change QUOTATION_PARTNERS-ITM_NUMBER = '0000020'  where 000020 is a valid value, I get a message that says  "112 Please enter sold-to party or ship-to party".
    What I don't understand is how this ITM_NUMBER "item number of SD document"  is connected
    to ship-to variable. How can I make sure that these two have proper relationship in the database.
    Any suggestions or comments will be highly appreciated.
    Thanks
    Ram

    not answered but am closing this to make place for other questions.

  • Desperate help needed with insertion sort code

    Here is my insertion sort code for a doubly linked list that does not work. I cannot figure out why and I've been trying everything for the last 10 hours! Please Please help..
    public void insertionSort()
        Node pointer=head;
        while(pointer.next!=null)
            Node insert=pointer.next;
            if (insert.item.compareTo(pointer.item)>0)
                pointer=pointer.next;
            else
                insert.prev.next=insert.next;
                insert.next.prev=insert.prev;
                if (head.item.compareTo(insert.item)>0)
                    insert.next=head;
                    insert.prev=null;
                    head.prev=insert;
                    head=insert;
                Node current =head.next;
                while (current.item.compareTo(insert.item)<0)
                    current=current.next;
                insert.next=current;
                insert.prev=current.prev;
                current.prev.next=insert;
                current.prev=insert;
    }

    It makes sense tracing it out on paper, running it,
    the program never ends.This means that there is an infinite loop somewhere in your code. Find the loops and put some System.out.println()'s in them to see where it's going wrong.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Help needed with itunes

    help needed with itunes please tryed to move my itunes libary to my external hard drive itunes move ok and runs fin but i have none of my music or apps or anything all my stuff is in the itunes folder on my external hard drive but there is nothing on ituns how do i get it back help,please

    (Make sure the Music (top left) library is selected before beginning this.)
    If you have bad song links in your library, hilite them and hit the delete button. Then locate the folder(s) where your music is located and drag and drop into the large library window in iTunes ( where your tracks show up). This will force the tunes into iTunes. Before you start, check your preferences in iTunes specifically under the"Advanced" tab, general settings. I prefer that the 1st 2 boxes are unchecked. (Keep iTunes Music folder organized & Copy files to iTunes Music folder when adding to library). They are designed to let iTunes manage your library. I prefer to manage it myself. Suit yourself. If there is a way for iTunes to restore broken links other than locating one song at a time I haven't found it yet. (I wish Apple would fix this, as I have used that feature in other apps.) This is the way I do it and I have approx. 25,000 songs and podcasts and videos at present. Hope this helps.

Maybe you are looking for

  • LookAndFeel issue reloading an Applet in a Web page

    Hey all, I have an Applet that runs on a web page (loaded by servlets and JSP's using Tomcat 3.2.1 and Apache). I created my own LookAndFeel class and have a static function in the applet that sets the LookAndFeel to my new class. Everything works fi

  • Show my visibility on iChat and other questions

    I have done several searches on this site and google's and still have yet to find some of the stuff I am looking for. I figured it was time to post so hopefully someone else will know. First is it possible to be logged into iChatav3 and show yourself

  • Can't import schemas in classpath when generating JAXB

    I'm trying to create schemas that are used to provide basic components for more complex schemas, using the same design idea behind creating abstract Java classes and then extending them. I'm having trouble referring to classes in different modules, t

  • How to call data from backend ECC system in Gateway Hub System?

    Hi Experts, We have a scenario where the GR process has to be done on Mobile app. We have a SMP 3.0 and Netweaver gayeway deployed as Hub. I really need quick pointers on how should we go about  this? My queries are mentioned below: 1.I don't see SAP

  • How do I send email notifications to a different email address?

    I created a form in Forms Central, but I need the notifications and receipts to be sent to and from a different email address other than what I used to create my adobe account. How do I accomplish this?