/** * Sets the current directory of this process. * @return true if current directory was set; false if not. */ static public boolean setCurrentDirectory(File curDir) { if (pureMode) { throw new RuntimeException(LocalizedStrings.OSProcess_SETCURRENTDIRECTORY_NOT_ALLOWED_IN_PURE_JAVA_MODE.toLocalizedString()); } return jniSetCurDir(curDir.getAbsolutePath()); }
/** * Sets the current directory of this process. * @return true if current directory was set; false if not. */ static public boolean setCurrentDirectory(File curDir) { if (pureMode) { throw new RuntimeException(LocalizedStrings.OSProcess_SETCURRENTDIRECTORY_NOT_ALLOWED_IN_PURE_JAVA_MODE.toLocalizedString()); } return jniSetCurDir(curDir.getAbsolutePath()); }