Re: To change working directory using Java

From: Joachim Schimpf <>
Date: Fri 24 Oct 2003 02:29:47 PM GMT
Message-ID: <>
Jordan Chong wrote:
 > Dear all,
 > Could we use Java to change the current working directory of the Eclipse to
 > another, by using Java?

The cwd is a property of a process.

If you use Java with embedded Eclipse, then both are in the same process,
and changing the cwd in Java or Eclipse will affect both Java and Eclipse code.

On the other hand, if you use out-of-process Eclipse, then changing the
cwd in the Java process will not affect the Eclipse process. You would
have to make an rpc to change Eclipse's cwd.

  Joachim Schimpf              /             phone: +44 20 7594 8187
  IC-Parc                     /
  Imperial College London    /
Received on Fri Oct 24 15:32:40 2003

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:26 PM GMT GMT