I would like to know why you need to run an OS-specific command? The point of Java is that it is not system-dependent.

There are Java commands to create a directory already.