This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Idle Musings: Correct value of "user.dir"
- From: Brian Jones <cbj at gnu dot org>
- To: "Ranjit Mathew" <rmathew at hotmail dot com>
- Cc: "GCJ" <java at gcc dot gnu dot org>
- Date: 26 Feb 2003 07:54:59 -0500
- Subject: Re: Idle Musings: Correct value of "user.dir"
- References: <OE704xjZ1WkA5fZxhhX0001d982@hotmail.com>
"Ranjit Mathew" <rmathew4lists at hotmail dot com> writes:
> Hi,
>
> The "user.dir" system property is used to indicate "User's current
> working directory" according to the Sun JDK 1.4.1 docs - however, is
> it the working directory *at the time of process creation* or *at the
> time of lookup*?
Yeah, the current working directory isn't possible to change under Sun's
JVM using the core libraries. There are some hacks out there that do
it via JNI but Sun doesn't provide it... which is annoying enough to
consider fixing it ourselves.
Brian
--
Brian Jones <cbj at gnu dot org>