Wrox Programmer Forums
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2006, 10:46 AM
Authorized User
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Settings files

Hello

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:

File f=System.getProgramFilesFolder();

...or something, which on Windows would return C:\program files\ (as a File object), and which on other platforms would return something equivalent?

Thanks.

Neil






Similar Threads
Thread Thread Starter Forum Replies Last Post
Language settings jemacc Reporting Services 0 June 4th, 2008 03:35 PM
Changing Settings.settings when assembly is in GAC evandro.paula .NET Framework 2.0 0 September 25th, 2007 09:54 AM
Browser Settings... arjun_a ASP.NET 2.0 Basics 1 December 26th, 2006 03:00 AM
database settings frankv25 ASP.NET 1.0 and 1.1 Basics 0 August 18th, 2004 07:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.