How to programmatically find the default installation directory for the given OS and user, thru Java?
<p>I need to find the directory that will be used by default by the given OS and user combination for installing a new application. For example, on Windows, for any user, that directory could be <code>C:\Program Files</code>; for Linux + root, it could be <code>/usr/local</code>; for Linux + non-root user, it could be <code>/home/username</code> etc.</p>
