<p>I want to bring up a file dialog in Java that defaults to the application installation directory.</p>

<p>What's the best way to get that information programmatically?</p>

```
```
System.getProperty("user.dir")
```
```
gets the directory the Java VM was started from.