public static String getApplicationDataDirectory() {
    String result;
    if (isRunningWindows()) {
      // This should be the same as passing CSIDL_APPDATA to the native SHGetFolderPath() Win32
      // function.
      result = System.getenv("APPDATA");
    } else {
      result = System.getProperty("user.home");
      if (isRunningMacOSX()) {
        result += "/Library/Application Support";
      }
    }
    return FileUtils.ensureTrailingSlash(result);
  }
Determines the application data directory in a platform-independent way. The path returned by
this method always contains a trailing path separator.

@return the application data directory for the current platform.
java/zylib/src/main/java/com/google/security/zynamics/zylib/system/SystemHelpers.java