API for Windows system paths and variables

Ulf Zibis Ulf.Zibis at gmx.de
Mon Jan 24 11:22:01 PST 2011


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.

-Ulf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20110124/f3d5e5c7/attachment.html 


More information about the nio-discuss mailing list