Embarrassingly dumb question about files, but it's got dukes attached . . .

I've got a project that may be set up to run as an application, or as a WebStart, or as an Applet, or any combination thereof.
I've got some persistent data I'd like to stick in a file, local to the user's machine, somewhere that would be easy for the program to find. Can anybody suggest a place to put it, that would be both platform-independent and independent of whether this thing is being run as an Application, a WebStart, or an Applet?
I ought to know this.
JHHL

I think System.getProperty( "user.home" ) does the
trick, especially if the data is 'per user'. On
Windows, for instance, this returns c:\Documents and
Settings\UserName. You can stick your file in a
properly named (try to be unique) subdirectory.Certainly a thought. One that had occurred to me as well, but still worth a couple of dukes. Although it would more properly be "per machine", rather than "per user."
In the case of the Applet, there's the possibility of storing the license data file (and possibly also a configuration file, or perhaps even one file containing both ) in the same place where the Applet itself lives. Any suggestions on how I might handle that?

Similar Messages

  • Dumb question about automation, but I'm stuck

    The first time you view automation, it asks if you want to view it globally or just that track. I selected just the track, now I need it globally. I can't figure out how to make the automation visible on more than the one track.
    Sorry for the lame question, but I'm stuck.

    I figured how to view the automation track by track, but there doesn't seem to be a total global fix.

  • HT5312 In itune I need to fill up the questions about card but i dont have credit card,what can i do?

    In itunes i need to fill up the questions about card but i dont have a credit card, what can i do about that?

    Hi Huyen1110,
    You can use the steps in this article to create an iTunes Store account that does not use a credit or debit card for payment -
    Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Hi, is their an app that let's me store my C.V in photos as I have my C.V on file but can't seem to attach anything apart from photos

    Hi, is their an app that let's me store my C.V in photos as I have my C.V on file but can't seem to attach anything apart from photos

    Two to have a look at at iUploader and iCab Mobile, but you may well find others in the app store.

  • Maybe a dumb question, about which power connectors to use, but....

    This may sound like an incredibly dumb question, but here goes anyway....
    I upgraded my system a few weeks ago, and will be slapping in a new ATI X850 Pro AGP card in a few days.  My current graphics card is a p.o.s. Radeon 9550, so it doesn't have its own power connector or even a fan.  My PSU is a dual-rail Antec model, and I'm wondering if it should matter any about how many or which devices I have connected to each power cable set.  My psu came with cables to attach, only 2 of the 4 though are the 4-pin molex - the other 2 are pci-e power connectors I believe.  Should it make a difference which or how many devices I connect to each cable?  For ease of plugging in, I believe my DVDRW and CDRom are using 1 cable, and my ide drive and floppy are using the other cable. Also, I have a pci fan and a case fan running off 1 or the other.  I'm likely to jump the power cable for the video card off the one the hard drive is using, unless someone has some suggestion to offer to the contrary.
    If it makes a difference, can anyone recommend how they would have them connect?
    My list of devices to plug in would be:
    1)IDE HDD
    2)Floppy
    3)CDRom
    4)DVDRW
    5)Case Fan
    6)PCI Fan
    7)Video Card
    Thanks for any thoughts!  SAB - you seem to be the man on builds.....any ideas? 

    Well, I put the new card in and connected it on a cable with the optical drives.  Also, I had unwittingly connected my cdrom on the same ide channel as my hdd    , so I changed that so both optical drives are on the secondary ide.
    So far, so good.  3dMark03 jumped up from 3300 with an overclocked Radeon 9550 to 10570 with the stock Radeon 850 Pro 
    I wish I could find some local source to purchase additional molex cords for my Antec SmartPower 2.0 psu, though - I've got 2 more 'outlets' just sitting there on the psu doing nothing, because the other cables are for pci-e, and I'm not using pci-e......  If I could buy some additional molex cables to plug in like the ones that came with it, I could have the vid card on its own cable....

  • Probably a really dumb question...but so am I

    Just bought a brand new iMac (specs below). Old one? Panther (3.10.9), 1 GHz, 2 RAM, 80 GB space)
    Keeping the old iMac. A perfectly good machine. Only reason I bought a new one: kind of maxed out regarding my primary use of a computer...home music recording. Just needed more space, power, speed, etc.
    Question: Before I call the phone company (our ISP: ATT), want your advice.
    Can I just hook up two computers (both iMacs, one old, one new), on the same telephone line (a land line...this would be the only phone line coming into the house), and have them work? Or, would the ISP, the telephone company, charge us more for doing this? Meaning operating two computers on the same line simultaneously. (Forget about wireless here. Don't use it, not sure that I will anytime soon.)
    Why couldn't I just plug in the other computer into a phone jack in another room in the house and have it work while the other one, in another room but using the same phone line, is running at the same time? Both simultaneously. (Sure, I'd need a modem for each machine going into the ethernet port.)
    As I said, possibly a dumb question. On the other hand, I'm pretty dumb too.
    Thoughts, advice, suggestions? Greatly appreciated.

    It's probably connecting to a broadband modem (DSL or ADSL). That device allows you to get the high speed internet going on using the same phone jack in your house, and connects to the computer through an ethernet cable.
    "Old school" or dial-up modems are traditionally built into the computer or plug into a USB port, and then use a normal phone cord (same thing other phones in the house use). Aside from being super slow, your line is usually busy and you're unable to make/receive calls when you're online.
    I'm guessing you're connecting to a broadband modem (since you mentioned ethernet cable). With that in mind, the answer is yes, you can hook both those computers up so they can be online at the same time. What you need is what's called a router or switch, and they're not very expensive. One line connects to your broadband modem, then you have 3-4 jacks that you can plug additional computers in (so they can all use the connection at once).
    If you want to have the machines in different rooms but don't want to run wires everywhere, look for a wi-fi router, which will usually give you a few jacks for connecting computers that don't have wi-fi but will also let you do a wireless internet hookup for your new iMac, the old one (if it has wi-fi), and even iPhones if you have 'em.
    Apple has two products that might work for you. The Airport Extreme Base Station has super-fast wifi plus jacks for plugging computers in via ethernet, and even lets you share a printer. http://www.apple.com/airportextreme/ The Time Capsule does all that, and also has a built in hard drive (you can get with a 1TB or 2TB hard drive), which is great for using Time Machine. We've had a Time Capsule since they first came out and love it - super easy to set up, and all the backup stuff just happens without having to worry about it.
    Hope that helps!

  • A dumb question about wifi...

    I'm not as 'literate' as some are when it comes to computer technology...but here is the question...If I walk into a place that has wifi and my iphone is set with wifi ON, how will I know if there is a charge for using the wifi? Will my iphone automatically kick into the wifi or will there appear an invitation to pay a fee to connect...and how do you pay and do you have to have a password and if so, how do you get that? I know....dumb question...Thanks.

    Not a dumb question at all.
    First of all, set your iPhone up like this:
    1) Go to Settings on the main screen (looks like gears)
    2) Click on "Wi-Fi" (second option from the top)
    3) At the bottom of this page (Which should say "Wi-Fi Networks" at the top) turn "Ask to Join Networks" to the "ON" position.
    Now when you walk into a place that has Wi-Fi, your iPhone will display a little window that asks you whether you want to join the network or not.
    In some places, you may even see a list of more than one Wi-Fi network to join. This is quite common in New York City. The reason is because so many people have Wi-Fi in there apartments, and they all live so close together, that sometime your iPhone can detect multiple networks. The coffee shop near my apartment has their own network, but I can also connect to the Wi-Fi network in my apartment because I only live about 50 feet away.
    Anyway, when you see the list of Networks to join, you may notice a little padlock symbol next to some of them. This means these are closed networks that require a password to connect to. (My network is "Closed", ie requires a password so that everyone in the coffee shop next door doesn't use my internet).
    Networks that DO NOT have the little lock symbol are "Open" which means you can join them without a password. But there is a catch... A lot of coffee shops have open networks, but as soon as you try to browse the web, they redirect your browser to their own page, no matter what web address you enter. Basically, they are letting you connect to their network without a password, but not letting you browse the internet without giving them some money.
    So (as the previous poster said) the page that the coffee shops redirects you to, usually has instructions, and of course a place to put in a credit card. Once you do all that, then you can browse the internet without getting redirected to their little payment page. Its sort of confusing because you don't need a password to connect to their "open" network, but you do need one to browse any web pages. How you get the password differs from coffee shop to coffee shop, but usually they give it to you right inside your web browser once you give them your credit card number.
    T-Mobile provides wireless for Starbucks (at least in a lot of places they do). So once you have an account with t-mobile, you can use it in any starbucks or "T-mobile hotspot"
    Now this all sounds kind of complicated, but more and more these days, you can just walk into a place, find an open network (one without a lock next to it) and start browsing without being redirected or dealing with credit cards. Basically these places are providing free internet to try to attract customers.
    Good luck
    P.S. Wi-Fi eats up battery life. If you aren't going to be using it to browse web pages, you can go into settings, then Wi-Fi, and turn Wi-Fi off. This will save you battery life, but you have to remember to turn it back on. Even without Wi-Fi on, you can still browse the internet if you see a little "E" at the top of your screen. The E stands for the AT&Ts Edge network, which isn't as fast as Wi-Fi, but covers pretty much everywhere that your phone can get a signal.
    Message was edited by: erik graham

  • Dumb Question about multiple BSSIDs

    This is probably a dumb question, but enquiring minds want to know...
    When using Yosemite's built-in Wireless Diagnostics scan I see many unique WiFi BSSIDs (MAC addresses) associated with my Time Capsule: 5 for my Guest Network and 6 for my "main" network. I see that not all have the same 802.11 protocol, but not all have unique 802.11 protocols. Also I see my "main" network is the 802.11ac network.
    So my questions are:
    - Why are there so many different BSSIDs and how should I interpret them?
    - Which of these BSSIDs are "relevant" that I should pay attention to?
    Thanks,
    Kevin

    Why are there so many different BSSIDs and how should I interpret them?
    The 5 GHz band on the main network is one unique BSSID
    The 2.4 GHz band on the main network is one unique BSSID
    If you have the Guest Network setup......
    The 5 GHz band on the guest network is one unique BSSID
    The 2.4 GHz band on the guest network is one unique BSSID
    If you have multiple AirPort routers, repeat the information above for each router.
    Which of these BSSIDs are "relevant" that I should pay attention to?
    Personally, I pay no attention to this, but some users place great importance on this.
    The BSSID tells you which AirPort.....if you have multiple AirPorts....and which band....2.4 GHz or 5 GHz.....that you are connected to at the current time....as well as whether you are connected to the "main" network, or the "guest" network.....if you have enabled the guest function.

  • Dumb question about browser dectection

    I have a web application that looks awesome in IE but in Firefox it looks clunky and blocky. What I need to perform is a validation to see what browser the client is using. I have done this before on simple html pages javascript browser sniffing. Well it seems that I can't for the life of me to be able to get this working in Creator.
    My web project is a Sun Creator Web application. My OS is Windows
    Does anyone have any idea or references that you could supply to me?
    The following code works in an html environment but in a jsp I cant get the different style sheets to work.
    document.write("<link id="link1" rel="stylesheet" type="text/css" href="/WebDemoExtractor/resources/introductionFireFox.css" /> ");
    U jave tried many variations of the following
    document.write("<ui:link binding='#{introduction.link2}' id='link2' url='/resources/introductionFireFox.css'/>")
    I have tried performing many variations with the the above and I have had no success.
    Is it even possible to perform this function??
    Thank you

    jackiepanpan wrote:
    Not a dumb question at all.
    I think you mean how is it possible to view YouTube videos in Safari on iPad, right?
    Basically, YouTube senses the browser you're using. Because Safari on iPad doesn't support Flash, YouTube delivers the movie in a format the iPad can play (like H.264, as a previous post mentioned). This happens with YouTube videos embedded on other web sites, too.
    I hope this helps.
    I was in an Apple Store a few days ago, and a teenage kid really wanted an iPad. His dad said, "but it doesn't play flash, so you won't get to see YouTube videos that you love." Kid said, something expletive deleted.
    The son then picked up the iPad, and he clicked on the YouTube icon. Walked out of the store with it. Sales guy and I laughed. Made my day.

  • Dumb question about user_sdo_geom_metadata DIMINFO entries

    I'm sure that this is a dumb question!
    I create a new entry in user_sdo_geom_metadata as follows...
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES ( 'PR_A', 'GEOM',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X',190000.0,640000.0, 0.05),
    MDSYS.SDO_DIM_ELEMENT('Y',120000.0,680000.0, 0.05)
    NULL );
    But when I select the DIMINFO from the table...
    SQL> select diminfo from user_sdo_geom_metadata a where table_name = 'PR_A';
    DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
    SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', 190000, 640000, 0), SDO_DIM_ELEMENT('Y', 1200
    00, 680000, 0))
    The sdo_dim_element and sdo_tolerance
    elements show no decimal places.
    Is this because I have not set some
    display number format option in SQLPLUS
    or for some other reason?
    regards
    Simon

    Simon,
    If you are using an old sqlplus client
    (815) then you won't be able to see the decimal places in the diminfo object.
    But if you hace a newer (816/817) sqlplus
    client you should be able to see the decimal places.
    If you are not seeing them in these clients
    then there might be some format paramter set
    to show numbers without decimals.
    You can do a
    show numformat
    in sqlplus to see if there is any format set for that paramter.
    null

  • Dumb question about cycling a battery. Sorry!

    I just received by new mac book pro replacement battery today and I have some questions regarding it. First of all, my original battery lasted 2 yrs, 2 mos. I purchased another apple battery for my 15 inch mac book pro (computer originally purch. Aug. 2007). I've seen on these boards that I'm supposed to "cycle" the battery once a week to get the maximum life out of it. I think a cycle means using the battery until it's power is used up and then charge up to 100% again. Is that right? Anyway, my question is, "What is the proper care for this new battery? Does it damage it to have it plugged in when it is fully charged? Or should I always keep it unplugged and use the battery until it runs out and then charge it again? And what does it mean to cycle it once a week, if I'm already using the battery and recharging it when needed?" Sorry if these are dumb questions. I'm not really computer savvy! Thanks.

    You should use the battery for a while every day but not drain it right down, before re-connecting the power and re-charging it to 95%+ this is not a complete cycle but partial/normal cycling.
    _Every couple of months_ you should re-calibrate the battery which means you keep using it until it goes into emergency sleep itself (you will see a warning then 5 minutes later it will go off by itself) and then _leave it in this state for at least 5 hours_ before you re-connect the power supply and fully charge it (without unplugging) - this is a proper re-calibration.

  • Question about file preparation for print from Photoshop

    I need to figure out the best method for saving for print from Photoshop. Here are the things that are confusing me:
    Problem: When I create a design in Photoshop, I'm left with a few options on how to save my document. I would like to know which of the following is the best method:
    Method 1: create a pdf and embed the required fonts. This method worries me because I've read that certain fonts will not open on the recipients end due to restrictions set by the font maker. Is this something I should be concerned with or is embedding fonts the best route to take?
    Method 2: Convert all type to shapes. This method seems like the safest but I've read problems associated with this route as well. One website commented that having too much text converted to shapes can cause extremely long print times. Is this true?
    Another problem I've encountered with converting text to shapes is when I have a paragraph that has more than one text color...converting to shapes converts everything to just a single color. I would love to know a work around to this. Currently I have to create separate layers for the different text colors and try to manually align them...very time consuming. I know InDesign would be best for this type of thing, but Photoshop works just fine for me, asside from this one little thing).
    Method 3: Flatten my entire design (text and all) at 300dpi. Will my text look crisp flattening at this resolution?
    Thank you to anyone who can help clear this up for me. I read so much inconsistant information online that I don't know what to think anymore.

    Method 1: create a pdf and embed the required fonts. This method
    worries me because I've read that certain fonts will not open on the
    recipients end due to restrictions set by the font maker. Is this
    something I should be concerned with or is embedding fonts the best
    route to take?
    Always embed fonts, but then again, Photoshop can't until you save a format that can like PDF.  Some fonts do not allow you to do so. Outline the fonts or convert to shapes. Better yet, stop building text documents in Photoshop for print. It's generally a bad idea for many reasons like rejected jobs and lost money and time.
    Method
    2: Convert all type to shapes. This method seems like the safest but
    I've read problems associated with this route as well. One website
    commented that having too much text converted to shapes can cause
    extremely long print times. Is this true?
    Problems arise if you want someone to edit the files, but the same goes for a font that is missing.  As far as the print slow down times - it depends upon the RIP and how complex the file is.  Maybe or maybe not be an issue.  After all, text in Photoshop is using a font as a vector shape layer and not a font in the traditional sense.
    Another problem I've encountered
    with converting text to shapes is when I have a paragraph that has more
    than one text color...converting to shapes converts everything to just a
    single color. I would love to know a work around to this. Currently I
    have to create separate layers for the different text colors and try to
    manually align them...very time consuming. I know InDesign would be best
    for this type of thing, but Photoshop works just fine for me, asside
    from this one little thing).
    A paragraph?  Please attend a school that teaches you the basics of design in graphics. It will do you a great service to get more studies under your belt. Photoshop text is for graphical art not type setting.
    Method 3: Flatten my entire design (text and all)
    at 300dpi. Will my text look crisp flattening at this resolution?
    It depends upon the resolution of the output device. The higher the resolution of the output the worse your text will be.

  • Question about file extension - using email delivery options in 12.1.3

    So, we had 12.1.1 and we have some existing XML Publisher reports.
    Now we've upgraded to 12.1.3, and there is a new option when running a concurrent request called "Delivery Options".
    This allows, among other things, to deliver the output to an email address.
    In testing this, I tried running a report that typically outputs to Excel....however when it sends the email (again, not using a bursting control file, but the delivery options in the concurrent request), the attachment comes over with an extension of .EXCEL instead of .XLS
    Does anyone know where I can change that extension?
    thanks!
    -jerry

    This seems to be a bug - pl see MOS Doc 1554605.1
    HTH
    Srini

  • Another dumb question about transferring files

    OK - so now I'm trying to transfer (as in move) the photos from my laptop to a portable drive in order to move them to my desktop machine.  I have Lightroom 2.5 installed on both PC Vista machines.  So...how do I do it without messing up my laptop.  I am concerned about what happens to the Lightroom catalog when I export them to my external drive.
    Thank you,
    J.

    One way to do this is to run Export as Catalog to the external, including the images, then from the other machine, run Import from Catalog. You can choose to not export the Previews, as they will be rebuilt in the new location. You can then run the catalog from either machine or the external, but subsequent changes in one will not be carried to the others.

  • Few questions about file sharing using airport

    I'm thinking about getting an AirPort Extreme, but I have a few questions:
    1- I (must) use Ubuntu Linux at work and I would like to be able to acess my home files hosted at AirPort remotly. Is this possible?
    2- Can I access my files on my iPhone using 3G connection (eg: download or stream mp3 files, photos, ...)?
    Thanks in advance!
    Marcio

    Yes.
    Yes. Use FileBrowser for iPad.

Maybe you are looking for

  • Need to Push Every Event in a Calendar Ahead One Week (AppleScript?)

    Hi folks. I have an iCal calendar with many events in it. Some are multi-day, some are single day. I need to alter the start (and end) date of every single event in this calendar by one week. In other words, I need to push the entire calendar one wee

  • Does Flex Builder scale?

    Has anyone had success building large ActionScript projects in Flex Builder? Say 20,000 lines of ActionScript. Or is that not the way Flex is typically meant to be used? Thanks.

  • Hardware acceleration with Aperture 3 on 8600M GT?

    Hi, I'm using an early 2008 Macbook Pro with a 8600M GT, and it seems to run pretty slow when I do edits on Aperture 3. I was wondering if it's actually making use of the GPU on the Early 08 MBPs, or only the CPU?

  • Mess caused by upgrading to Photoshop Elements 13

    I have just upgraded from Photoshop Elements 12 to Photoshop Elements 13 via download.  I am not impressed.  First I had to or was directed to use a download manager of Japanese name!  With 50Mb cable broadband I don't need this, but the alternative

  • How to return a boolean in a method?

    I have public int isEven(int num1, int num2)           boolean even;           if (((num1 + num2)%2)==0)                even = true;           else                even = false;           return even;      }however, it tells me that the return are inc