Article View: borland.public.jbuilder.java.swing
Article #724Since when FileReader needs absolute pathes in the constructor?
From: Zoran Pjevic
Date: Wed, 05 Jan 2005 16:37
Date: Wed, 05 Jan 2005 16:37
26 lines
1631 bytes
1631 bytes
Hello
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")
private void readFileList(String filename) {
try {
FileReader fr = new FileReader(filename);
BufferedReader in = new BufferedReader(fr);
}
}
catch (FileNotFoundException ex1) {
}
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.
Any hint how to make it work again in Java 1.4.2_01-b06 ??
Thanks,
Zoran
Technical Details
Message-ID:
<ae5ot0ln2php04755hegatl1u8b0tt74sv@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,b0532bee425c6727,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: Zoran Pjevic <zpjevic@anitesystems.de> Newsgroups: borland.public.jbuilder.java.swing Subject: Since when FileReader needs absolute pathes in the constructor? Date: Wed, 05 Jan 2005 17:37:50 +0100 Message-ID: <ae5ot0ln2php04755hegatl1u8b0tt74sv@4ax.com> X-Newsreader: Forte Free Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.157.29.250 X-Trace: newsgroups.borland.com 1104943053 213.157.29.250 (5 Jan 2005 08:37:33 -0800) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail