How can I change the current working directory from within a Java program? Everything I\'ve been able to find about the issue claims that you simply can\'t do it, but I can\
If you run your legacy program with ProcessBuilder, you will be able to specify its working directory.