API for Windows system paths and variables

Ulf Zibis Ulf.Zibis at gmx.de
Sat Feb 26 11:34:00 PST 2011


You can monitor this bug on the Java Bug Database at
Make standard system paths and variables available via API.

It may take a day or two before your bug shows up in this external database.

-Ulf


Am 24.01.2011 20:43, schrieb Mike Swingler:
> On Jan 24, 2011, at 11:22 AM, Ulf Zibis wrote:
>
>> Hi all,
>>
>> wouldn't it be interesting to have standard system paths available from FileSystem class, e.g. 
>> for Windows:
>> %APPDATA%
>> %AllUsersProfile%
>> %SystemDrive%
>>
>> I ask this, because there is a problem to save a Java application's data to system's application 
>> data location.
>> The question came up because of this bug:
>> [Bug 57798] [41cat] Move netbeans_default_userdir to APPDATA 
>> <http://netbeans.org/bugzilla/show_bug.cgi?id=57798>
>>
>> Without using Windows API, NetBeans installer isn't able to determine the system's application 
>> data standard location.
>
> I would highly support this. On Mac OS X, we have custom API which vends a variety of different 
> directories for different purposes and different domains:
> <http://developer.apple.com/library/mac/documentation/Java/Reference/JavaSE6_AppleExtensionsRef/api/com/apple/eio/FileManager.html#findFolder(short,%20int) 
> <http://developer.apple.com/library/mac/documentation/Java/Reference/JavaSE6_AppleExtensionsRef/api/com/apple/eio/FileManager.html#findFolder%28short,%20int%29>>
>
> It would be nice to have a cross-platform way to ask for the machine or user scoped directory for 
> "app data" or "plugins".
>
> Mike Swingler
> Java Engineering
> Apple Inc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20110226/a4883df7/attachment.html 


More information about the nio-discuss mailing list