🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #726

Re: Since when FileReader needs absolute pathes in the constructor?

#726
From: John McGrath [TeamB]
Date: Thu, 06 Jan 2005 07:34
26 lines
1854 bytes
On 1/5/2005 at 11:37:50 AM, Zoran Pjevic wrote:

> On Solaris the following snippet worked fine with Java 1.4.1-b21 with
> relative pathnames given in the filename (ie.  filename =
> "../blabla/xy/myfile")
    :
> With Java 1.4.2_01-b06 the same code throws the FileNotFoundException
> with a relative pathname.
> 
> With an absolute pathname it is still fine, but I need it with
> relative pathnames.

AFAIK, relative path names have worked pretty much the same since the
earliest versions of Java.  The thing that seems most likely to have
changed is the directory used to resolve the relative paths, which can
change depending on how the program is launched.  What mechanism are you
using to launch the programs?

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <xn0dwx6pu4qeu29007@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <ae5ot0ln2php04755hegatl1u8b0tt74sv@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,b0532bee425c6727
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: Since when FileReader needs absolute pathes in the constructor?
Newsgroups: borland.public.jbuilder.java.swing
References: <ae5ot0ln2php04755hegatl1u8b0tt74sv@4ax.com>
User-Agent: XanaNews/1.17.1.2
Message-ID: <xn0dwx6pu4qeu29007@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:000000E5
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.158.234.226
Date: 5 Jan 2005 23:34:03 -0800
X-Trace: newsgroups.borland.com 1104996843 141.158.234.226 (5 Jan 2005 23:34:03 -0800)
Lines: 26
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail