Is there a simple way to get the path to a user's application data directory from the system? I don't want to hard code in something like
System.getProperty("user.home")+"\Application Data\";
I would LOVE IT if there was a cross-platform way to find where application config data should sit for a particular user. In other words, for an app named "MyJavaApp", on Windows you would want C:\Documents and Settings\user\Application Data\MyJavaApp. On Linux you would want /home/user/.MyJavaApp.
Is there a good, cross-platform way of doing this?