Updating files inside App Bundle

This is dealing with an app bundles in the normal desktop environment.
I have a bundle I've created that has already been distributed. We've updated the code in the Jar file some and want to push this new Jar out to the existing bundles. There are user created files inside the existing bundles that should not be lost so simply creating a new bundle to replace the old isn't an option. Is there a recommended way to accomplish what I'm trying to do?

KenW2 wrote:
Am I getting trolled by lazarus because I made a n00b mistake and he's a jerk, or did I deserve that helpful reply because I'm stoopid?
Neither of the above, Ken. Consider it an honor to have successfully invoked that visit. Q Lazarus has a mission here that few or none of us understand. Yet I know his work is not done.
If some context would help, refer to the list of aliases provided by KT, and try to appreciate the author's unique style. I don't think it's overstatement to say that some of these contributions have elevated rudeness and abuse into an art form. In time--I got over my first helpful reply(TM) in just two short weeks--you may recognize the work of an authentic American crank, possibly one of the last of his kind. If you haven't done so already, try to see Clint Eastwood's +Gran Torino+. This is how I often imagine my hero--though Walt Kowalski had a front lawn to protect, and I don't think I know anyone in San Franscicso who owns a front lawn.
That said, I must tell you that the programmer channeling Walt is an expert in most of the topics which earn his comments. Would you rather see a surgeon with a pleasant, supportive bedside manner, or one who knows what he's doing? His advice is almost always good, and on the days he remembers his meds, you'll find solid answers to the most difficult questions in the forum.
Welcome to the Dev. Forum, Ken! I hope you'll be back whenever you can use some help, and whenever you can help someone else here.
\- Ray

Similar Messages

  • Unable to load classes from jar files inside APP-INF/lib in EAR.

    Weblogic version: 10.3.3
    Platform: Linux x86-64 bit
    We deployed an ear packaged with all the common library jars inside APP-INF/lib. Deployment was successful.
    for some reason, it is always giving ClassNotFoundException for the classes inside the jars. This does not happen
    in 10.3.2 version of weblogic.
    We tried to add them to domain/lib directory (instead of APP-INF/lib) but still it is not able to resolve the classes.
    Any pointers would be appreciated.

    try using prefer-web-inf-classes in the weblogic.xml file in your WAR file
    or using prefer-application-packages in the weblogic-application.xml file in your EAR.

  • Extracting and updating files inside a JAR file... from my code

    Hi.
    I need some help in the following:
    from my code, I need to search a JAR file, open it, unzipped it, then I need to search a xml and property files inside the JAR, after that I need to modify the files and finally, my code has to save the changes and update the JAR file. All that must be from my java code.
    How can I do that? I am trying to use Runtime.getRunTime().exec().... but I am not sure that it works. Besides, I don�t know what command to include in the exec() method. Is there any way to do that?
    Thanks

    The normal reason I see for this requirement is that people want to update a properties or data file. The approach I use it that I first look for the data file in a well defined location and if I find it I use it and update it as required. If I don't fine it I create it base on a template file read from the jar file using getResourceAsSrream().
    In this way I never have to update the jar file.

  • Mail app won't launch: "No Info.plist file in application bundle..."

    Hi -
    I'm running 10.6.8 on an Intel iMac and haven't used Mail in a long time.  I tried to start it today and it won't launch.  I opened the Package Contents for the app from the Finder, and double clicked the Mail executable.  It launched in a Terminal window and gave the following error message:
    Last login: Thu May 24 12:17:01 on ttys000
    /Applications/Mail.app/Contents/Mail ; exit;
    imac:~ Bill$ /Applications/Mail.app/Contents/Mail ; exit;
    2012-05-24 12:37:01.769 Mail[26585:903] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
    logout
    I looked and there is a file called Info.plist in the folder and it even has the string NSPrincipalClass in it.  Beyond that, I am clueless! 
    Any help much appreciated!
        Bill

    I would download and run the OS X 10.6.8 Combo update.
    I peeked into it with Pacifist, and it contains an update for Mail.app, including replacements for the executable and the info.plist:

  • HT202152 I have tried updating my apps and software but it says my startup disk or hard disk is full. I deleted a lot of files and apps but they won't be erased from the trash. Please help

    I have tried updating my apps and software but it says my startup disk or hard disk is full. I deleted a lot of files and apps but they won't be erased from the trash. Please help.

    For information about the Other category in the Storage display, see this support article. If the display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    In Photos:
              File ▹ Show Recently Deleted ▹ Delete All
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside a photo or iTunes library will corrupt the library. Changes to such a library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install the app in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C.
    For ODS:
    security execute-with-privileges /A*/OmniDiskSweeper.app/*/M*/* 2>&-
    For GP:
    security execute-with-privileges /A*/GrandPerspective.app/*/M*/* 2>&-
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password.
    The application window will open behind other open windows. When you scan a volume, the window will eventually show all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • I updated my pages app on my ipad and when I tried to open a document it says the file format is invalid. None of my documents are opening pleaser help!

    I updated my pages app on my ipad and when I tried to open a document it says the file format is invalid. None of my documents are opening pleaser help!!!!

    Try this. It worked for me.
    I discovered the same problem.  I had an older version of Pages on my iPad. After updating it to the latest version all my previous documents created in pages for the iPad were rendered unreadable and a message stated that they were an invalid format.  Why for the life of me would a program that was created by Apple and sense updated not be able to read previous versions...well that's a whole other sad story.  Any way I discovered how to fix it but it would require that you had backup your iPad on a computer and not emptied your trash. If this sounds good than here is how you fix it... And it worked for me.
    These steps will enable you to reinstall a previous version of the Pages app so you can be able to read and edit older documents.
    FIRST: if you did backup your iPad using your computer and did not empty your trash, GOTO the trash and look for PAGES 1.4 (or other number) ipa ( that's the file extension) ie PAGES 1.4 ipa.
    SECOND: move that file out of the trash and onto your desktop.  Once you do this, double click on it and a box will come up stating a newer version has been found and do you want to revert back to older version. ANSWER YES. It will than automatically place and overwrite the older version back into the file on iTunes that contains the rest of your backed up apps.
    THIRD: and this is where it is important that your backup would have to have been on your computer. I'm not sure if backup on the cloud will work.  iCloud backup at your own risk And here's why. Before you restore you will need to remove the latest version of Pages off your iPad by doing the usual : holding down the home button until the apps wiggle and remove by pressing on X on app.  Removing off your iPad will also delete all your documents but if you have a previous backup on your computer those documents will be stored safely on itunes and will return.
    FORTH: plug your iPad into your computer and allow it to sync so iTunes will recognize it. Once iTunes is up and you can see that it recognizes your iPad, GOTO "FILE/DEVICES/RESTORE FROM BACKUP."  ******* DO NOT CLICK ON BACKUP***** click on RESTORE FROM BACKUP. This will reinstall all previous settings and documents that were their when you backuped PLUS the older version of Pages that you placed back from the above steps. Let it run through all the setups ( this could take up to 20 minutes...depending on amount of data and photos and apps).
    FIFTH: Once everything is reinstalled a message will popup on your computer stating "to leave iPad plugged in until iTunes recognizes it again" ( it's basically rebooting itself).  Once done (leave iPad plugged in still) GOTO iPad and follow the steps. IMPORTANT:  iPad will ask you if you want to SET IT UP AS A NEW IPAD, BACK UP FROM THE CLOUD or BACK UP FROM ITUNES.....press SET UP AS NEW IPAD. Follow all of the steps required. Once complete GOTO iTunes on computer, look for "IPAD" plus a little arrow ( should be on upper right corner of iTunes window, click on it ( this will safely disconnect your iPad from iTunes) . Now unplug iPad from computer and go to your iPad and look for the older version of Pages. It should be there along with all your old documents ( readable and editable too).
    Hope this helps. Good luck.

  • Since the last update my Numbers app in IOS, iPad3 and iphone5 will not open.  It works fine on my macbook pro.  It starts but before I can open a file it closes.

    Since the last update my Numbers app will not load in either my iPad3 or my iPhone5.  It works fine on my MacBook Pro.  The app starts but before I can open a file it closes.  Is this a common problem and do you know hwo to solve it?

    Hi Michael,
    If you've already restarted both your iOS devices after the update and Numbers for iOS still won't load, you might try clearing the documents temporarily out of iCloud, opening the apps, closing them, and then placing the documents back in iCloud.
    To do this, in Finder on your Mac, hold down the option key and then Go > Library > Mobile Documents > com~apple~Numbers.  Move the documents there out to the Desktop or other location of your choosing.  Then give iCloud time to sync.  Then try opening Numbers on iPad and on the iPhone.  If they open, then close them, and move the documents back into  Library > Mobile Documents > com~apple~Numbers and let iCloud sync again.
    That sometimes clears up the problem.
    SG

  • Updating an XML file inside the executable JAR.

    Hello all!
    I would like to askk how can i update an XML file that is packaged inside my jar file?
    For intstance:
    I have a Java Application in NetBeans
    Inside a package i have constructed a custom .xml file.
    I can read from this file using
    .....getClass().getResourceAsStream("/.../file.xml")and after that using XPath for querying and works fine.
    I want to update an entry in my xml file so the jar contains now the newly updated file.
    Thanks everyone who spends hit time to read this. Hope someone can help me.

    Please don't cross-post:
    http://forums.sun.com/thread.jspa?threadID=5342194

  • Updating an XML file inside the Jar executable

    Hello all!
    I would like to ask how can i update an XML file that is packaged inside my jar file?
    For intstance:
    I have a Java Application in NetBeans
    Inside a package i have constructed a custom .xml file.
    I can read from this file using
    .....getClass().getResourceAsStream("/.../file.xml")and after that using XPath for querying and works fine.
    I want to update an entry in my xml file so the jar contains now the newly updated file.
    Thanks everyone who spends his time to read this. Hope someone can help me.

    Even if it were possible, it would be a bad idea. A jar file is something you deploy. It can be really hard to manage ongoing maintenance if the thing you deploy changes after you've deployed it.
    Just create a file, in an appropriate place given the user's OS, to hold data that changes after the jar has been deployed. Your application will still be in a single jar; it's just that the application will happen to create additional content outside the jar.

  • HT1338 Why isn't the file size displayed for software updates in the App Store?

    Why isn't the file size displayed for software updates in the App Store?
    My only internet connection is a tether to my iPhone.
    My limited bandwidth forces me to manage my data consumption - I am forced to "google" the file size of the software update so I can decide if I have the headroom in my data plan to take advantage of the update.

    If you click on the name of the Application in your Updates Available list,
    it will take you to the update Imformation for that App.

  • Did someone here updated their iphone4 to 4.3.5? does any files or apps in my iphone will be delete? and what new features it has? thanks guys!

    someone answer me. thanks in advance guys! =)

    No files or apps are deleted when updating your phone. In any case, all your content should be safely backed up on your computer.
    There are no new features, just bug-fixes and security updates.

  • Will updating my ipad delete all the files and apps i have there?

    Will updating my ipad delete all the files and apps i have there?

    Perform a complete backup before hand and all will be well.  You just restore the backup after the update.  If you have a backup password, be sure you haven't forgotten it.  The details of what is backed up differ a bit if you are outside of the states.  Read this article for details:
    http://support.apple.com/kb/HT1766

  • I have completed the OS X upgrade, restart etc. but when attempting to update 8 other Apps to X I get this message: WE COULD NOT COMPLETE THIS UPDATE  Failed to verify the preflight file. It is not signed by Apple?

    I have completed the OS X Maverick upgrade, restart etc. but when attempting to update 8 other Apps to X Maverick I get this message:
    WE COULD NOT COMPLETE THIS UPDATE
    Failed to verify the preflight file. It is not signed by Apple.
    Help!

    Similar threads solve this problem by either creating a new administrator identity, which allows one to update applications, or changing the keychain prefs to Best attempt.  My issue was solved by adding a new admin user, and then updating the apps from the App store using the new identity.  Under my orginal user identity the keychain app would crash when I attempted to open Prefs.  After creating a new identity and updating the applications (iPhoto, etc) I found I was able to open the keychain Prefs logged into my orginal identity.

  • On the fly modification of an updated file

    Good Day,
    I have a SharePoint library which keeps word documents (docx) in document sets. These word documents can be co-authored which means that more than one user can use Word application and work with the file at the same time. Each time user saves the file (i.e.
    using Ctrl-S shortcut) the document is updated on the SharePoint.
    1)
    Is there any way of "on the fly" modification of updated file on server side and save such an altered version of the document?
    (FYI - the file modification I'm talking about should remove all edition rights inside docx file)
    I have tried with ItemUpdating but I cant figure out how to access new version of the file (the content which actually is going to be put on the server) alter and make sure it going to be stored on the server. I can easily access current version of the file
    (which of doesn't have any modifications) - but it is not the case here - I need access to version which is going to be put on the server and alter it.
    Is it possible to do something like that?
    2)
    I also went for other possibilities (although much less convenient) and experimented with ItemUpdated event. This time I was able to access the file and the content was updated but any alterations of the content failed with the exception saying:
    {"The file "XXX" is locked for shared use by YYY."}
    Why am I getting this exception? Of course the file is locked because is it still open by user in the Word app (who actually manually triggered document save operation) and this is a normal use case here. I can get more users to open that document and let
    them edit it simultaneously and that is fine. Then, why I cannot modify the file in event receiver because of this exception?
    I hope you'll come up with some ideas.
    Thanks.

    Hi,
    We can use SystemUpdate() instead of Update()
    to update the file in Event Receiver.
    Here is a blog for your reference:
    http://www.novolocus.com/2012/07/25/sharepoint-check-out-vs-lock/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Opening a text file in a bundle with C++

    Hi folks! I'm working with bundles for the first time, and I'd like to know how to open a text file inside one with C++. What I have now is this:
    ifstream file = new ifstream(fileName.c_str());
    if (!file->is_open())
    return false;
    Where fileName is a std::string. This is the way I'm accustomed to opening files (I'm from a Windows development background -- don't hate me! ). Unfortunately, the is_open() test always fails.
    I know how to get the path of the bundle. Once I add on my data subdirectory and file name, the fileName variable ends up as this:
    /Users/sb/...project location.../Debug/MyProg.app/data/Dev Options.ini
    Should the path be different somehow? Thanks for any help!

    Your data folder most likely isn't directly inside the .app bundle. The first directory inside an .app bundle is named Contents. The article at the following URL should help you:
    http://www.meandmark.com/bundlespart1.html
    If you're going to use C++ streams to open files, you'll want to ignore the section on opening the file in Part 3 of the article. You'll want to read up on the Core Foundation CFURL functions. You'll want to use one of the functions that gives you a path to the text file that you can pass to a C++ file stream.

Maybe you are looking for