I'm looking for a way to get the location of the local application data folder, which is a special Windows folder, in Java. Unfortunately, the following only works for English versions of Windows XP with default settings:
System.getProperty("user.home") + "\\Local Settings\\Application Data"
What I'd like to have is something like this in .NET:
System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
Is there a way to do it without having to call SHGetSpecialFolderLocation of the Windows Shell API?