I have an application contained in a JAR file. I want to be able to save a settings file. On Windows, I'd normally save it in c:\program files\ etc, but other platforms no doubt have their own ideal places for such things.
My question is, is there a method somewhere that returns a Directory object or File object or something which is guaranteed to be a good place for these things on the OS it's running on? So a function like:
...or something, which on Windows would return C:\program files\ (as a File object), and which on other platforms would return something equivalent?