Idle Musings: Correct value of "user.dir"
Brian Jones
cbj@gnu.org
Wed Feb 26 13:03:00 GMT 2003
"Ranjit Mathew" <rmathew4lists@hotmail.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@gnu.org>
More information about the Java
mailing list