ExtendedService and FileOpenService don't use same default path.

I have an application (unsigned) that saves progress to a file chosen by the user using the FileSaveService.
I store this location (specifically location.getName()) using the PreferencesService so that the most recently saved file can offered at startup of the next session.
I therefore have to use the ExtendedService to open the file on next startup.
During testing I am launching my application at the command line using javaws <jnlp>, rather than deploying to a webserver, which could be what's exposing this problem:
The FileOpenService seems to return a FileContents whose 'name' is relative to the 'home.dir'.
The ExtendedService.openFile() call seems to look for files relative to some other location, probably the working directory of my IDE, or of the .jnlp file.
So, when I try to openFile() passing the FileContents.getName() stored earlier it fails to find the file.
JNLP won't give me access to System.getProperty("user.home") so I can't hint this to openFile().
Has anyone experienced this problem? Can anyone suggest a way around it?

The security group has prevented up from exposing the
system property "java.home" to an untrusted application
or applet, but perhaps we could solve this problem by
setting the System Property "java.dir" to the value in "java.home".That sounds good, but while you are thinking
of such things, I will add that I would like to
see an option to 'suggest' to the file chooser
to use paths according to system properties..
e.g. in addition to..
FileOpenService.
  openFileDialog(pathHint, extensions) ..add a new overloaded method..
FileOpenService.
  openFileDialog(pathHint, extensions, boolean pathIsProperty) ..to suggest a new use like..
fos.openFileDialog("user.home", xtns, true);The intent being that the web-start client inserts
the correct path for user.home, without ever
exposing it to the original application.
Is this doable?

Similar Messages

  • I Have an iPad 2 that is not sinced to anything and I don't use iTunes or icloud. I have only taken pictures using camera app. I have successfully deleted all pictures in the app, but my settings show 94 photos and 3 videos. Where are they?

    why is my iPad showing that I have 94 pictures and 3 videos when my camera app shows zero? How do I locate the items the settings is indicating I have on the device? I have never sinced, I don't have any iTunes, and I don't use icloud.....

    Thanks so much! My grandaughters played games on the iPad over Xmas and one of their moms said shed restricted their access! Guess they forgot to enable again. Thank you again! Karla

  • HT1937 i have just downloaded a new version of Iphone software on my iphone 3 . but i'm facing problem in configuring it . also tried to configure it with itunes but it always says that there's no sim card in your phone and previously i was using same sim

    i have just downloaded a new version of Iphone software on my iphone 3 . but i'm facing problem in configuring it . also tried to configure it with itunes but it always says that there's no sim card in your phone and previously i was using same sim without any problem . need solution . kindly help .

    Hello ashharuddin,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Troubleshooting No SIM
    http://support.apple.com/kb/ts4148
    Toggle Airplane mode On and Off.
    Try turning iPhone off and then on again.
    Check for a carrier settings update. Tap Settings > General > About. If an update is available, a prompt will appear.
    Remove the SIM Card and verify that it is a valid, carrier-manufactured SIM. Also verify that it is not damaged, worn, or modified. Then reinsert it.
    Restore the iPhone.
    Have a nice day,
    Mario

  • I want to clean up my icloud account but I can not delete my mail storage and I don't using icould for my mails?

    I want to clean up my icloud account but I can not delete my mail storage and I don't using icould for my mails so there's nothing in the trash.

    Which email provider do you use if not iClouf?

  • My old email comes up when I want to update my apps.and I know that email is old and I don't use it.however I don't have a password for it so am unable to update.how can I delete it? And have my current email for that

    My old email come up when I want to update my apps.however I don't use that password at all,I've even had a message saying its not in use. I can't update them though which is really annoying! I've tried setting up that email again and change password but doesn't work at all.does anyone know how I can get rid of and use my current email?

    Hi there, this problem has probably been resolved now, but I must say that I came across these posts today as I had the same problem, my old e mail kept popping up, but all sorted now!  Old Apps are not tied to the old Apple ID, honestly!
    Rudegar is so right, all you do is go the SETTINGS/iTunes & App Store, then select `Apple ID` `Sign Out` then you get the chance to enter your new ID, and it worked a treat!
    Good luck with anyone else with this problem, as I spent so long on this, really stupid!
    PS you`ll need to again verify bank details

  • UI Defaults Import problems and best practice for using UI defaults

    Hi,
    I'm hoping some of you experts can tell me how to Import the UI Defaults from Schema A and Workspace A to Schema B and Workspace B. My goal is to fluidly share the UI defaults with another developer as we march forward creating new versions of the application (inside new Workspaces with new schema names). My longer term goal was to create a "library" of UI defaults that other future developers could easily access as well.
    The basic setup I have been using is that each developer gets their own schema and their own workspace. When a new version of the database design is made, I keep the older versions of the workspaces and schemas intact and then create a new workspace and new schema for each developer (just two of us right now). Then we Export apps, respectively, from our old workspaces and Import apps into our new workspaces. I also create a new db tablespace and new db user account and map to new workspace as well. This way I always know what db design version we are using against what Apex app version and can, conversely, delete tablespaces, user accounts, workspaces and Apex schemas in one swallow without worrying about getting the wrong version of something accidentally deleted. 9It may seem like I am doing a lot of extra work, but my sanity is still (relatively) intact.)
    I keep getting
    "ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-20001: You do not have access to the schema that you are importing. Import failed. &lt;pre&gt;begin wwv_flow_api.g_id_offset := 0; wwv_flow_hint.g_schema := 'MY_OTHER_SCHEMA'; wwv_flow_hint.check_schema_privs; end;&lt;/pre&gt;"
    when I try importing it.
    We want to share our UI defaults that we each set up in our respective workspaces and schemas. We do have some overlap of tables (which may be a no no I suppose). We also each have differently named (test) apps.
    So, like app Import/Export, I thought I could just Export my app (along with UI) from Schema A and Workspace A and simply import it into Schema B and Workspace B and then in the new Workspace have access to the UI. I tried editing the UI *.SQL using the app ID and new schema name but it still balks. It seems like there is an internal table ID code specific to each table that is particular to the table and the workspace it was created in.
    I can go to a specific workspace, create a sample UI, Export it's app, and Import the same app (new ID) into same workspace and the UI shows up fine.
    So, what good is the UI defaults if you can't carry them forward to the next version of your app that is in a new workspace? It seems like we are forced into creating the equivalent of one workspace, say the "Library", and both of us with separate schemas sign into here. But then how do I get the UIs from the "Library" to our "Beta" workspace, and similarly from there to 'Production' without recreating UIs each time? And, if I prefer a sample set of records, say only 100 test recs, and the other developer prefers a full set, say 30,000 recs, and we have to use the same workspace, since the workspace can only be associated with one db tablespace, how can I load both 100 and 30,000 recs into same area? (and since we can't, that is another reason we wanted to use separate workspaces and pass our respective UIs back and forth and finally into the shared "Library" area.)
    Well, thank for reading through this and hopefully it makes sense.

    OK Scott, let me try to clarify here:
    Regardless of what reasons I have, my immediate goal is to sucessfully Export the UI Defaults from Schema A and Workspace A and Import into Schema B and Workspace B.
    So, logging in as Schema A into Workspace A, I go to my app, then Export/Import then "Export User Interface Defaults". There is only one schema available to choose from in the "Schema" dropdown select list. I export the UI and save it to a file.
    Next I logout and then login as Schema B into Workspace B. I go to Shared Components UI Defaults and display my tables. Most of these tables (about 30 of them) have the same exact name as the tables used by the other schema. UI Defaults do not exist.
    I choose "Import" in the Tasks list, File Type "User Interface Defaults" and pick file I just exported. File is successfully Imported. Now I'm on screen for installing the UI Defaults. When I try to Import the UI it brings me to "Confirm Replace UI Defaults" and lists the OLD workspace schema (not the new one I expected)as being removed and replaced. I push ahead, tell it to do the replace and get the "You do not have access to the schema that you are importing". So I guess I'm doing something wrong.

  • My network provider is Verizon and they don't use SIM cards. I don't he enough space in ICloud for all o my notes, contacts, ad pictures. How do I get all of this information off of my old phone so I can restart with my new iPhone 4S(I have the4)

    What do I do? I'm afrai to activate my new phone in case of losing all pictures and contacts and notes and messages on my old phone and I don't have and iCloud space

    Darbyh77490,
    If you have a laptop or desktop computer download the latest version of iTunes to it. Connect your phone to computer w/ USB cable. Backup phone to iTunes then restore backup to new phone..,, here is how.
    http://support.apple.com/kb/ht1766

  • Encoding error occurs using parameter "default path for scripts"

    Hello,
    assume we have a script "/home/artur/tymczasowe/test.sql". I can execute it using SQL Developer by:
    @/home/artur/tymczasowe/test.sql
    Everything works as expected.
    Then I set parameter "Tools - Preferences - Database - Worksheet - Default path to look for script" to "/home/artur/tymczasowe" and executed:
    @test.sql
    This time national characters has been lost, everyone replaced with "�".
    The script content:
    --create table a(enc varchar2(8), data varchar2(255));
    delete from a;
    insert into a(enc, data) values ('cp1250', 'zażółć gęślą jaźń');
    commit;
    Operating system is Debian Squeeze amd64, Developer version is 3.1.07, Build MAIN-07.42. This problem occurs using previous, 3.0.* versions too.

    Hi user633485
    Logged bug:
    Bug 13779254 - ENCODING DEFAULTS TO NATIVE RATHER THAN IDE SETTING USING DEFAULT PATH
    -Turloch
    SQLDeveloper Team

  • If I don't use the default homepage I have to start Firefox twice. I have all add-ons and extentions disabled.

    I have tried setting my homepage to Google and to Bing but Firefox closes as soon as the page loads. Starting it a second time works with no problems.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can try to reset Firefox.
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    Reset creates a new profile and tries to import some settings from the old profile leaving the old profile intact.
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    Also check the settings in your security software.
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • Does Firefox use Internet Explorer in any way? When I go to CCleaner to delete history, there are always IE files as well as Firefox, my default browser and I don't use IE. It doesn't make sense to me, but then, I don't know much.

    I don't know what I can add... thanks for any help.

    Firefox itself does not use the IE temporary internet files location, but some plugins will save data to the same place as IE.

  • Every time I try to add add'l pix, it has to remove all existing and re-sync (always use same computer)

    Each time I want to add more pictures to my library, it deletes all existing and re-loads (during syncing).  I always use the same computer, never plugged my ipad into any other computer.  I also get error messages sometimes when I am trying to download new songs (via computer) and it has given me an error message saying that the computer is not the 'designated' computer (but it is and always has been.).

    Holy Smoke!!!   ...and it was JUST that easy.
    Spent HOURS trying to resolve.
    thank you, THANK you, thank YOU!!!
    I don't know why I didn't find this in my previsou Discussions searches.

  • CP1515n and HPLIP don't use black cartige

    Hello,
    I'm using the CP1515n as anetwork printer for Windows and Linux systems manly for printing documents (PDF, Word OpenOffice).
    While printing from Windows works fine under Linux when printing in color mode I can't get the printer to use the black cartridge for text.
    Not that this uses uneccesary much toner it also leads to ppor apereance since if you look a little closer you can see some coloured pixel around.
    Is the anything I can do about that? Under Windows the driver has an option named "always print text with black" which I'm missing under linux, on the web interface I can't find an option to set this manually either.
    I even tried the latest HPLIP this just leads to complete failing of color printing so I switched back to the "official" debain version.
    uname:
    Linux  2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux
    hplip:
    HP Linux Imaging and Printing System (ver. 3.10.6)
    Device Information Utility ver. 5.2
    print-string:
    lpr -P HP_Color_LaserJet_CP1515n -o OptionDuplex=False -o PageSize=A4 -o PageRegion=A4 -o Duplex=None -o InputSlot=Auto -o ColorModel=RGB -o MediaType=Plain -o OutputMode=Normal

    Geoff
    Maybe remove your matrox tools and drivers and hardware and try again. I removed my Matrox MX02 and my system is fast and stable and with the BM. I think a PC is just as good as any Mac and I am sure is faster if you have the correct hardware and is setup correctly. I visited a editor who edits on a Mac Pro FCP for TV shows and realized that mac is not what everybody rants and raves about the time it took him to complete what he was doing, I could have done it much quicker. I do agree Mac's are good for certain applications but so they should be at the price they sell for. IMO bang for buck nothing can come close to PC and CS5.
    I would get in touch with one of the PC Builders on this site and Ask for help as I believe there is nothing wrong with Adobe CS5 and the PC format.
    Darren

  • I cant see old messages and calls when i use same ...

    please skype community help me.. i cant see conversations or incoming/outgoing calls when i use the same account on other phone.. please give me advice what to do.. 
    thank you so much..

    Hi there pinkbat112,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    -Griff W.

  • I have the wrong apple ID associated with my computer, how do I update it so it's my more recent apple ID? The apple ID associated with my computer is old and I don't use it.

    So I first got my computer in highschool, and I used my highschool school email at the time to make my apple ID, but since then I created a new apple ID that's associated with my phone and credit card and practically everything else besides my computer. How do I change it on my laptop so that everything is cohesive in terms of my iCloud?

    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    If you have used your old ID to purchase content from iTunes or the App store, you may want to continue to use this ID for iTunes only to avoid losing your content.

  • How can I buy upgrade app in blackberry world...I'm in nigeria and I don't use prepaid card nor CC..

    Blackberry world problem

    Hi and Welcome to the Community! With that limited information, it's hard to know how to help you. So, start here:Article ID: KB17745 Downloading and purchasing applications using BlackBerry App WorldThere are multiple payment methods available (e.g., PayPal, carrier billing, credit card), but if you have none, then you have no way to pay for your purchase. You must have a payment method that BBWorld accepts, simple as that. Good luck!

Maybe you are looking for