Jar download folder?

Hello to all,
i am proving to write code for using with webstart and have a problem. I want to my aplication unzip the jar files that were downloaded but, where does webstart download them? I have searched and i have seen that a structure od folder are created depending of the domain and port. How can i compound the whole tree? Webstart rename some folders and the jar files too. I need the whole path to pass it to my application to catch the jar's from the correct path. And.. is it possible to change the download folder?
Another question:
Tracing my program, i have seen that webstart doesn't run my program in the jar's download folder. It runs it in my user desktop folder, and so, my program doesn't find any jar to unzip there. Are any way to tell to webstart where to run the application? I.d. the jar download folder.
Thak you very much for you attention

I run into the same problem. The user of the application will need to alter some files to use the
application. There are two possible solutions:
-Store the configuration files on the server
-Store them locally
Storing them on the servers would be nice however:
->There will have to be a server that automatically stores & sends back files as requested by
the user. Implementing such a server is not trivial on one hand and second, depending on
the network speed and file size can be quite slow. Also, there will have to be a login necessary
to access files and ...
Ok, I decided to store them locally. I am just about to do it, so that's the plan:
-> ZIP the files to be unpacked on the local system and put them into a .jar file sent as resource
when loading the Java Web Start Application. Accessing will be easy and can be done with:
this.getClass().getClassLoader().getResourceAsStream("PATH TO ZIP FILE");
The important part is to put the zipped files again into a jar file, that way, unzipping can be
done easy without having to find the jar file on the local file system!

Similar Messages

  • How do I use one downloads folder for multiple users?

    I recently added my girlfriend a profile in my Imac. We both have seperate Profiles and logins however I would like to find out, if the the Downloads folder can be used by both profiles. I found that each profile has their own Downloads folder, and goes to their own locations.
    I would like to find out, if its possible to re-direct my downloaded files as well as her downloaded files into just ONE "Downloads" folder. The default destination of the downloads folder would be /users/girlfriend(name of girlfriend). I want to change it to /users/(me) so that all downloads would just go to one folder.
    Thanks in advance!

    Direct your downloads to Users-Shared

  • Mail attachments aren't being downloaded to Downloads folder?

    Whenever I click on an attachment I receive on Mail, I want it to automatically download onto my Downloads folder. However, when I click on an attachment, it opens, but it doesn't appear in my Downloads folder. It only saves onto the hidden "Mail Downloads" folder that you can find by going into your Mac's Library. This is especially irritating when I open an attached word document, edit and save it, close the window, and then attempt to resend the edited attachment through email only to find that it's not in my downloads folder and that the "Mail Downloads" folder only has the original copy (without edits).
    Under "Mail Preferences -> General -> Downloads folder:" I have it set to my actual Downloads folder so I don't understand what could be wrong. Anyone know what could be wrong? Thanks for the help!
    P.S. I know that I can "Save As" the file and put it into my downloads folder, but that's a lot of unnecessary work when I'm downloading multiple attachments.

    Select the photo(s) in the email body, Control (right) - click , and select Save to Downloads Folder from the contextual menu:

  • Downloads Folder

    Hey everyone!
    I'm sorry if I asked the wrong question in a wrong place. I really do not know where to got to ask this question. Here we go. I know how to change my icons on my Mac from Finder to the trash can, but I do not know how to change my Download Folder, and what not. I mean I know how to change it, but when I change the icon to a basket. The stuff I download are not in the basket. They are usually infront of the basket where you can't see the basket, or behind the basket where you can't see what I downloaded. How can I set it up where I can see the basket, and the stuff in my basket. I know this is a hard question to understand. Maybe some of you do know what I'm talking about, but I do need some help please. I would really appreciate it. Thanks!
    -Tyson

    Are you talking about changing the icon that shows up in the Dock where the Downloads stack is? I assume you're using the method where you put an empty file/folder with the icon you want in the Downloads folder (not actually changing the icon of the downloads folder itself).
    The Downloads folder is sorted by the date the file was added (so you can see the order in which you downloaded files). You can right-click it and sort by name to keep a certain icon in front (so the basket would show up above the others).
    If you update to 10.5.2 or later, another method that might work better (but you wouldn't be able to actually see the stuff in the basket) would be to set the icon of the Downloads folder itself as the basket (Get Info on the basket, click the icon, copy, get info on the downloads folder, click the icon, paste), and then right click and Display As Folder. This will set the downloads Stack to show the basket (and only the basket, with nothing behind or "in" it) as its icon. When you click it, it would still pop out all of the files in the Downloads folder.

  • Downloads Folder Help Please :(

    Hi all,
    A friend sent me a RAR file, i unpacked it and nothing appeared in the downloads folder where i unpacked it to ????
    after doing this a couple of times as i thought it might be a blip, i deleted everything in the folder. but the folder states the size of it is 4.5gb for 0 items?
    now i guess i have done somthing wrong, but for the life i dont know, please can someone help me. 4.5gb folder with 0 items??
    Thanks in advance
    Barry

    Open up terminal and type
    " sudo rm -rf downloads/ " provided you have nothing inside the downloads folder, not even empty folders
    you will then have to hit enter, and then your password, and hit enter again
    that will remove the downloads directory

  • Downloads Folder No Longer Jumps Up When Saving Attachments

    When saving attachments in Mail, my downloads folder on the Doc used to jump up a couple of times when I hit "save" from within an email that I received to signify that I just saved it into that folder.
    However, for no rhyme or reason, the downloads folder no longer jumps up when I save attachments. The attachment still save in to that folder but I miss the pop-up action telling me that it did.
    I searched the net and posts and found nothing on this quark. This is driving me nutz!
    Please help!

    Check in System Preferences>Dock and check off Animate opening applications and see if that doesn't do it. Not sure if that is why but it is worth a shot.

  • Attachments in Mail Downloads folder

    I found a folder Home>Library>Mail Downloads which was loaded with about every attachment I have ever received using Mail. I was trying to figure out why. In Mail prefs, there is an option to select a folder, I have chosen Home>Downloads pretty much which is also default for my browser. The action is set to remove unedited copies when message is deleted. I'm confused because it looks like the Destination and Action are independent. When I have an attachment, if I click "Save" it populates the selected path to the "Downloads" folder. If I open that attachment, it seems to populate the Home>Library>Mail folder.
    What controls the opened attachments form populating this, somewhat, obscure folder?

    Hi,
    Attachments to messages are actually stored in the mailbox along with the message text. It is when an attachment must be opened with another application, such as a Word document with Word, that the attachment is also placed in the Mail Downloads folder. There it can be used and edited by the application used to open it, and from there can be returned as edited to the sender or to others.
    There is no reason files must permanently stay, but if you edit or otherwise alter files that have been attached, then you must elect some place to keep them for your own use.
    You will note that in the Mail Preferences/General there is also a selection regarding when to remove files from Downloads folder if not edited. Any file that is not edited need not remain in the Downloads folder since it already exists in the mailbox with the message it came attached to.
    Image files, since they can be opened directly in the Mail window, by Mail, do not go into the Downloads folder, but if any were opened from the message, with say, Photoshop, then that image file would also be sent to the Downloads, temporarily.
    Ernie

  • Why does Reader XI download email attachments to my Download folder before I am able to print them?

    After last update my Reader XI automatically downloads email attachments (.pdf) to my Downloads folder. I then have to open that file in order to print it.  Before, the attachment would open in Reader and I could print from that direct.

    Windows 8, Firefox email client.  What happens is that I click on attachment links in emails, which are .pdf files.  Instead of a menu allowing opening of the file with Reader, the file gets automatically downloaded to my Downloads folder.  I then have to open that folder, click on the file name... then Reader opens and I can view the file as well as print it from the Reader menu.

  • Quick Look copies attachments to Mail Downloads folder!

    Holy maloly, I just discovered why my MacBook Pro was slowly losing disk space! Every time I use Quick Look to check an attachment in Mail, a copy of the attachment is placed in the Mail Downloads folder of my user Library. My writing work entails quickly looking at lots of very large attachments and e-mailing estimates to clients. Quick Look has been a great time saver for this. Nice being able to stay in Mail and not have to open Word to examine the job. But I don't need all these additional copies taking up space on my hard drive. As far as I know, Mail is the only program that does this.
    Is there any way of telling Quick Look to NOT make copies of Mail attachments?
    Thanks!

    Hi,
    Attachments to messages are actually stored in the mailbox along with the message text. It is when an attachment must be opened with another application, such as a Word document with Word, that the attachment is also placed in the Mail Downloads folder. There it can be used and edited by the application used to open it, and from there can be returned as edited to the sender or to others.
    There is no reason files must permanently stay, but if you edit or otherwise alter files that have been attached, then you must elect some place to keep them for your own use.
    You will note that in the Mail Preferences/General there is also a selection regarding when to remove files from Downloads folder if not edited. Any file that is not edited need not remain in the Downloads folder since it already exists in the mailbox with the message it came attached to.
    Image files, since they can be opened directly in the Mail window, by Mail, do not go into the Downloads folder, but if any were opened from the message, with say, Photoshop, then that image file would also be sent to the Downloads, temporarily.
    Ernie

  • When I go to my downloads folder on my dock and click the file all the content shows up but as soon as I go to open it in the finder, I get a blank window. Has anyone else had this problem, if so, How do you fix it.

    When I go to my downloads folder on my dock and click the file all the content shows up but as soon as I go to open it in the finder, I get a blank window. Has anyone else had this problem, if so, How do you fix it. I also cant delete anything from this folder because of it. Any help would be greatly appreciated.

    Hey Allen,
    I am having the same issue here in September.  How did yor situation get resolved.  My iPad Siri works great.  My iPhone 5 Siri has been out of comission (OOC) for almost a month and I am beginning to get a little frustrated since Siri works so well in July....ANY assistance would be highly appreciated... Thanx

  • Why are my Downloads not going to the Download Folder?

    I presume my computer is playing up:
    In the Firefox preferences,
    I have selected "Show the Downloads window when downloading a file"
    and "Save files to Downloads folder"
    BUT - my computer neither shows the downloads window,
    nor saves the download to the folder.
    (It used to do so, and I didn't change my preferences)
    Is there something you could recommend to correct its wayward behaviour?
    Thanks,
    Peter.

    I'm not sure this is the complete answer but try:
    PRAM RESET
    Zap the PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    And here is a System Management tool that can help clean some of your processes up:
    OnyX for Mac
    http://www.macupdate.com/app/mac/11582/onyx
    http://helpdesk.hsc.unt.edu/wp-content/uploads/2010/02/Mac-OS-X-10.6-run-OnyX.pd f

  • Downloading a file would bring up an option to open the file or save it - for some reason now it just downloads straight to the download folder. Why? Problem with Firefox or something else?

    Downloading a file would normally bring up an option to open the file with the appropriate program or save it - for some reason now it just downloads straight to the download folder. Why? Problem with Firefox or something else? It's very frustrating - sometimes you want the file opened first so it can be discarded or saved to a different location.

    Hey. that's great! Thanks for posting back with the outcome.

  • Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoyi

    Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoying. What happened? Internet Explorer 8.0 did the same thing. This was one of the reasons why I started using Firefox to download all images. I went into Tools>Options and it only lets me set another folder. I dont want to set a specific folder I want it to always go to the last folder used. So what gives?
    == This happened ==
    Every time Firefox opened
    == possibly when the most recent updates were installed, a few days ago

    Thanks jscher 2000. I guess I didn't make it clear. "It restarts with all the addons activated, and resumes with the tabs that were open before closing it." IE, it's running fine now with all the extensions activated. Everything is OK now.
    So something in the Firefox code was causing the bad behavior. It's not essential that I find out what the problem was - I'm just curious. And if anybody else has this same problem, it might be nice to have it corrected at the source.

  • Changing "Mail Downloads" folder for attachments

    It seems in Leopard Mail, when you double click an attachment to open it, it is temporarily saved to ~/Library/Mail Downloads. This is in contrast to (I think) Tiger, where it would be saved to the Downloads folder set in the General preferences. There is still a setting for the Downloads folder in the General preferences, and according to the help window, it is to "Specify the folder in which to temporarily save attachments you open from a message". To me, that means the same as the Tiger behavior. However, if I change this preference to, say, "Desktop", it seems opening an attachment (not explicitly saving it) still saves it to the ~/Library/Mail Downloads folder, not the assigned folder. Is this the correct behavior? If so, the help window is misleading. Personally, I would like the option to change this folder, although I suppose there are workarounds such as changing the Mail Downloads folder to an alias of the desired destination folder.
    thanks.

    Ok, so much for that clever workaround. Doesn't work, Mail just throws up an error and refuses to save the attachment. Any other ideas? I just want Mail to auto-save opened attachments onto the Desktop, in case I forget to explicitly save it, and so I don't have to root into subfolders to find it.

  • How to (successfully) change Mail Downloads folder?

    Hi,
    I've been trying to wrestle with my Mail Downloads folder location without success, so I thought I would ask.
    I dislike having a separate "Mail Downloads" folder because stuff accumulates endlessly there. The default Mail Downloads is at ~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads. Here's what I have tried:
    The obvious: change "Downloads folder" in Mail prefs. No matter what I choose, the files are still downloaded to the default folder.
    I removed ~/Library/Containers/com.apple.mail/Data/Library/Mail Downloads and made it a symlink to my ~/Downloads folder (where I'd like to put everything). This causes opening attachments from Mail to hang (I have to save them first, and then open from the saved location). I get these messages in Console (in this example, trying to open an attachment named "Manual.pdf", and PID 56818 is the Mail app):
    9/13/12 11:52:29.707 AM CoreServicesUIAgent[56818]: Quarantine resolution refused to pid 56809 because it is not allowed to read /Users/a10022/Library/Containers/com.apple.mail/Data/Library/Mail Downloads/Manual.pdf
    9/13/12 11:52:29.000 AM kernel[0]: Sandbox: sandboxd(56817) deny mach-lookup com.apple.coresymbolicationd
    9/13/12 11:52:30.221 AM sandboxd[56817]: ([56809]) Mail(56809) deny file-issue-extension /Users/a10022/Downloads/Manual.pdf
    9/13/12 11:52:30.238 AM sandboxd[56817]: ([56809]) Mail(56809) deny file-issue-extension /Users/a10022/Downloads/Manual.pdf
    9/13/12 11:52:30.253 AM sandboxd[56817]: ([56809]) Mail(56809) deny file-issue-extension /Users/a10022/Downloads/Manual.pdf
    Any thoughts? The symlink trick was working fine in Lion and before, the trouble started with the upgrade to Mountain Lion.
    Thanks,
    --Diego

    Hi,
    I have spent quit some time on this and there is no decent option to do so. Mail is a buggy product since it ignores the default preferences. Old tricks with the symbolic link don't work. Most likely because Apple wants you to look at all the nice inline attachments in stead of treating them as a real attachment. Just like they do in their commercials.
    I found some posts on how to move it to another disk but that was not my goal. So in the end, there was only one option left for me and that is to just make it a faourite folder in my finder so I can at least review it daily to clean it up.
    Sorry for not having a desent fix but this works for me.
    Good luck!

Maybe you are looking for