1

i'm creating a java library mylib that will work with default settings but user can create his config file to override those settings. the question is: what is a standard location of such file on windows?

on linux it's: ~/.mylib/* or ~/.config/mylib/*

regarding windows i found some answers saying many different locations: %LOCALAPPDATA%, %USERPROFILE% or %APPDATA% and then ./mylib/*. i also found some answers introducing $HOMEDRIVE and $HOMEPATH variables.

so where should my lib expect user to store his config file?

piotrek
  • 13,982
  • 13
  • 79
  • 165

1 Answers1

0

%APPDATA%/appname/configfile

This is the standard location and it's used by most windows applications. This blog post from msdn is the most authoritative source I could find.

Oleg
  • 6,124
  • 2
  • 23
  • 40