I have an eclipse rcp application, which i am launching by setting the working directory in the arguments tab of the debug configuration.

Meanwhile i needed to change the current working directory upon application start.

I've tried the following options : System.setProperty("user.dir", this.strDestination);

But it doesn't work if we use relative file path, as it refers to the older working directory. Only solution that is working in this regard is using getAbsoluteFile or getAbsolutePath (which is not a feasible option as relative paths is used in a number of location).

Any approach in this regard is highly appreciated.