How to change file content in JAR

I'm deploying a Java application using Webstart based on different jars.
One of the jars contains a 'config' file. The config file contains paths to databases.
The idea is that the user can change these paths (or other settings) using the application.
This would mean that the content of Config file in the jar file should be updated once the user
changed 'the settings'..
Is this possible ? If so, thanks to explain in detail.
Greetz,

depends.
If a user makes a change, you can record that change, possibly using the persistance service.
Then when he starts again, you read in the default config, then read from the persistance store to override those defaults.
You can not change the initial jar, that is really on the server, or cached on various users machines.
/Andy

Similar Messages

  • How to change the "content created" date/time in FCPX?

    Since I've had problems importing my whole iMovie event library into FCPX I decided to run some tests with importing individual files (part of iMovie events and originally imported from camera into iMovie). Some of them for some reason got the wrong "content created" date/time in them while in iMovie they have the right date/time set. Does anybody have an idea on how to change the "content created" timestamp?

    I had a bunch of DV files that imported stamped with the file modification date and time.  I did not find a way to change it in FCPX. With FCPX not running, I used A Better Finder Attributes to modify the creation and modification dates of the files in the event folder. FCPX reconnected to them but the event still showed the old range of dates so I created a new event and moved the clips to it. Maybe ther is a beter way but that is how I did it.

  • How to change the Content-Transfer-Encoding for the fmddataa.fmd from base

    Dear all,
       When I using this SO_DOCUMENT_REPOSITORY_MANAGERto send email,I find the fmddata.fmd  file have been changed  to binary file attachment. I don't hope so.any one have good idea to avoid this case occur?
      Can you tell me how to change the Content-Transfer-Encoding for the fmddata.fmd from base64 to quoted-printable.  The quoted-printable is the Content-Transfer-Encoding for text file with extension .txt
    Best Regards,
    Merry

    Thank you

  • Where is "save as" or how to change file type in Preview in Lion?

    Where is "save as" or how to change file type in Preview in Lion? I used to use Preview to change quickly change a lot of PNGs to either JPEGs or PDFs but with the introduction of versions auto save etc there no "save as" in the File menu. Any suggestions how to get this functionality back or how to get around it within OS X (no Photoshop etc)?

    Just wasted 15 minutes looking for that.  What's wrong with Save As?

  • How to change table content ...

    Hi All,
    Pl. give us soltution for the following :
    1. How to change table content of standard table ?
        (eg. mara content not from MM02.).
    2. How to add field in standard table ?
    waiting reply.
    Yusuf

    Hi  Yusuf,
    Modifying a standard table through a program using SQL statements is highly risky. However if u wish to do it programatically and not through MM02, you have the option of using BAPIs.
    Goto transaction BAPI and through the application hirarchy, goto Material Management section. There i am sure u will find some BAPIs to modify material master and they are the most stable mode of update programatically.
    Hope this helps.
    Regards,
    Aditya

  • On opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    on opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    Select the Project in the Browser.  Go to the Info section of the Inspector.  Click the Modify Settings button.  For  Video Properties, change the Format from PAL to NTSC.  Export again, you'll be fine.

  • How to see the contents of jar file?

    Hi
    is there any way we can see the contents of jar file.(Since it is similar to zip file can we unzip it and see the contents)

    In total commander Ctrl + PageDown

  • How to get the contents of jar file?

    Hi
    is there any way we can see the contents of jar file.(Since it is similar to zip file can we unzip it and see the contents)

    You can use:
    this->getClass().getResourceAsStream("/something.txt")
    where 'something.txt' is a file inside your .jar

  • How to ManipulateJar File Content?

    From another thread...
    Hi People,
    I have several probs with my application, which needs to manipulate jar files. Here's the background:
    There's a directory that contains 2 jar files - Prog1.jar and Prog2.jar. Prog2 is designed to change the contents of Prog1 and is called from the Main-Class application in Prog1.
    1. Is it possible for Prog2 to delete/replace/add files to Prog1 (without using Runtime.exec)?
    2. Is it possible for Prog2 to get the dir location of those files?
    3. Is it possible for Prog2 to get the absolute dir location of Prog1 itself?
    Thanks in advance!

    Well i dont exactly checked out if u can delete/replace/add in jar
    but u can read through the exact directories of a particular jar file &
    even u can read the content of a particular file
    also
    u can try this
    JarFile myJar=new JarFile("file path as string");
    Enumeration enum = jarFile.entries();
    while (enum.hasMoreElements()) {
    //print the directories & file names
    JarEntry myJarEntry=(JarEntry)enum.nextElement());
    String name=entry.getName(); //printing directories & filenames
    //u can even see file content if u know the files exact name
    //or u can chek for directory or file then see through it
    JarEntry myJarentryTest=myJar.getJarEntry("filename");
    InputStream ip=myJar.getInputStream(myJarentryTest);
    then u can read the content
    but i guess each time u have to create new jar
    if u want to manipulate it
    roy

  • Change file content in XI

    Hi ,
    can we change the input file content before processing in XI? if yes how?

    Hi Ranj,
    You can convert the file content in a XML using file content conversion (https://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm or Basic File Adapter Content Conversion - Process Integration - SCN Wiki) if your file is structured.
    In other case you would need a java mapping in order to modify the file in the operation mapping (interface mapping in XI).
    If you want to do a File to File scenario without ESR(IR) objects you can't modify the files if you dont develop a new adapter module to add to file adapter. (Custom Adapter Module Development - SAP PI 7.1 - Netweaver Technology - SCN Wiki)
    Regards.

  • How to change file type from .zip to .dock

    I would like to know how to change the saved file type (.zip) to other file types such as (.txt), (.doc), (.dock) or (.pdf).

    It's more complicated than just changing the name of the file to have a different extension.  What you have to do is to convert a file from one format to another.  To do that you have to use an application that knows how to open the original type and how to write the format of the new type.  The application to use for a given combination depends on the combination.  For example, the Preview applications knows how to read a JPG file and write the contents to a PDF file.
    A ".zip" file is a somewhat different case.  A ".zip" file is an "archive" that (generally) contains other files compressed within it.  If you double-click on a ZIP file, it should expand into the enclosed files.
    If you give specific examples of what you want to convert, people should be able to explain what to do.
    By the way, I'm not familiar with a file of type ".dock".  What is that?

  • How to store file content in BLOB field MySql database using java

    Hi!
    i want to store the file content in a BLOB field in MySql database using java.
    Please help me out..........
    thanx in advance...
    bye

    i stored images in db, and retrieved them. like that cant i store pdf file in db, and retrieve it back using oracle db?
    Plz help me out how to put a file in db. i need complete code. thanks in advance.

  • How to change file type associations in SAP ERP 6.0?

    Hello,
    I'd like to figure out how to change the application associated with a given file type in SAP. I want to open a .DOC file, but I am using OpenOffice instead of MS Word. I have .DOC file type already associated with OpenOffice in Windows XP, but SAP doesn't seem to recognize that association. I am using SAP ERP 6.0. Any ideas?
    Mike

    Hi,
    MS Word is mandatory. You will not be able to work using Open Office in SAP.
    Regards,
    Rajesh Kumar

  • How to change the content of GTC (terms and conditions) for Partner

    Hi all,
         We are using R/3 version of ISA B2B site. while creating order thru Shopping Basket we have requirement that We need to provide GTC (General Terms and Condions) for the Partner (View GTC link ).  Right now some default text is displayed in that window (text text text ext text text text text text like that). we need to change this.
    where i can change this text and enter our own terms and conditions.
    Please help me to resolve this,
    thanks in advance
    siva kumar

    Hi Siva,
    the GTC is shown in the JSP b2c/order/terms_and_conditions.jsp. If you have a look at the file, you will find the following code:
    <isa:translate key="b2c.order.termsAndConds.txt.dmy"/>
    The translate tag will render the language dependant text for the resource key "b2c.order.termsAndConds.txt.dmy". To change the content that is shown you can change the resource text or create your own resource key in the corresponding resource file. The resource files are located in the src-folder of the web application DC.
    Best Regards,
    Peter Kraus
    SAP Web Channel Consultant
    http://www.leonardo-it.com

  • How to change File Kind (not "how to assign an application to open a file?)

    I build the toc.ncx file (part of the ePub setup) automatically, based on user input and source file content. It's fine, except that the file Kind (as shown in Finder Preview, for example) is Plain Text.
    The Kind should be Unix Executable File (the actual description is "zmedia-type="application/x-dtbncx+xml") in order for the file to function correctly with the rest of the ePub generation.
    I could set the file Kind in the program (I think!), except that I do not know what the code for such a Kind is.
    Can you help?
    Message was edited by: David Neale1
    Message was edited by: David Neale1

    To make the file a Unix executable can be done as follows:
    Open the Terminal application in the Utilities folder and enter the following:
    sudo chmod 755 /pathto/filename
    Press RETURN. Enter your admin password at the prompt; it will not be echoed. Alternatively put a space after "755" then drag the file's icon into the Terminal window.
    If you want the Unix icon simply set the file's default application to Terminal by selecting the file then Press COMMAND-I to open the Get Info window. Change the default application in the Open With section. If you want all .ncx files the same way then click on the Change All button.

Maybe you are looking for

  • Posting Payment Lot using Transaction FP05 Tcode in SAP IS-U From Database

    Hi, I want to post a payment lot, using transaction FP05. It is BDC.  Data is in Database that have to be posted on SAP ISU , If anyone knows how  FP05 tcode structure please give your suggestions. So i can send the data to ISU using XI with JDBC Tha

  • Livonia, Michigan LABVIEW PROGRAMMING POSITION

    Livonia, Michigan LABVIEW PROGRAMMING POSITION Revolutionary Engineering, Inc. is dynamometer testing systems integrator and service corporation.  We provide systems and services for the automotive industry as well as in-house dynamometer testing.  W

  • Unkown error -39

    Whenever I try to sync my iPhone I always get an error message saying "...'s iPhone cannot be synced. An unknown error occurred (39)." Any idea what this is?

  • Spamtrainer error - binary operator expected

    On 10.4 server, this error started showing up. No updates were installed. Hoping to fix this, I even installed updated spamtrainer. But it did not help. At the command line, I typed this: /usr/sbin/spamtrainer -p col -d (where col is the partition na

  • Performance issue with iPhone 4 on iOS 7

    Hello, I have been using iPhone 4 since October 2011. Phone was performarming exceptionally good when it was running on iOS 6. However, post upgrading to iOS 7, finding all nonsense experieinces like any other Andriod/windows devices. 1. Phone hangs