Link to home
Start Free TrialLog in
Avatar of pofpof98
pofpof98

asked on

How to get the path of the application data folder ?

Hello

I'd like to know if it is possible to get the path, in java, of application data folder?
The result must be C:\Documents and Settings\...\Application Data

Thanks

Regards
ASKER CERTIFIED SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of freeexpert
freeexpert

IMHO the correct answer is
  System.getenv("APPDATA");

Of course, this is windoze specific, but it seems an installation may choose to keep appdata in a directory that is not System.getProperty("user.home") + File.separator + "Application Data".