This shouldn't refer to the user's home directory. Also, I am not sure but I don't think java interprets the tilde character the same way bash does - this is a bash shortcut and is not an official unix or posix thing. To see what I mean go on bash and do:
```bash
ls ~
ls '~'
```