Article View: borland.public.jbuilder.java.api
Article #2703Re: Working Directory
From: Trejkaz Xaoza
Date: Sat, 10 Jun 2000 00:00
Date: Sat, 10 Jun 2000 00:00
15 lines
1254 bytes
1254 bytes
ferhat haydar wrote:
> There is no such thing as current working directory in Java.
No, the 'user.dir' is supposed to point to the current working
directory.
That's what the Java documentation says.
The nugget of fun comes when you specify -Duser.dir=C:\Some\Other\Path
in the project properties... printing System.getProperty("user.dir")
from
within the program prints C:\Some\Other\Path, but when you write to a
file
from within the program it outputs to JBuilder35\bin.
TX
Technical Details
Message-ID:
<3941CDFD.1D9F6BC2@darker.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<18dae34d.6cae9544@usw-ex0108-062.remarq.com> <8hfj6u$2vj8$1@si05.rsvl.unisys.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,13dfe660ec9827b0 X-Google-Attributes: gid1089d0,public From: Trejkaz Xaoza <trejkaz@darker.net> Subject: Re: Working Directory Date: 2000/06/10 Message-ID: <3941CDFD.1D9F6BC2@darker.net> X-Deja-AN: 633313753 Content-Transfer-Encoding: 7bit References: <18dae34d.6cae9544@usw-ex0108-062.remarq.com> <8hfj6u$2vj8$1@si05.rsvl.unisys.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@optushome.com.au X-Trace: news1.blktn1.nsw.optushome.com.au 960614018 203.164.9.4 (Sat, 10 Jun 2000 15:13:38 EST) Organization: @Home Network MIME-Version: 1.0 NNTP-Posting-Date: Sat, 10 Jun 2000 15:13:38 EST Newsgroups: borland.public.jbuilder.java.api