Almost every article I read told me that you can\'t have chdir in Java. The accepted answer to this question says you can\'t do it in Java.
However, here\'s s
Quote:
The user.dir property is set at VM startup to be the working directory. You should not change this property or set it on the command-line. If you do, then you will see some inconsistent behaviour as there places in the implementation that assumes that the user.dir is the working directory and that it doesn't change during the lifetime of the VM.
The discussion is here