🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#733
From: John McGrath [TeamB]
Date: Thu, 06 Jan 2005 23:46
22 lines
1869 bytes
On 1/6/2005 at 4:02:35 AM, Zoran Pjevic wrote:

> The problem was caused by a symbolic link to the executable, which is
> used in a script to start the application.
> 
> It's a pitty that the apps folder is not the one of the symbolic link,
> but the one of the real executable.

The directory used for resolving relative paths will be the CWD setting
when you start the JVM.  What that is set to depends on how you start the
program, which is obviously system-specific.  Since you start it from a
script, you should be able to do a 'cd' in the script to the directory
that you want to be the base directory for resolving relative paths.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <xn0dwxwao5p4ol400g@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <ae5ot0ln2php04755hegatl1u8b0tt74sv@4ax.com> <xn0dwx6pu4qeu29007@newsgroups.borland.com> <r2vpt0dhui9qghj9923d4aaive8pjg8vdj@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> <xn0dwx6pu4qeu29007@newsgroups.borland.com> <r2vpt0dhui9qghj9923d4aaive8pjg8vdj@4ax.com>
User-Agent: XanaNews/1.17.1.2
Message-ID: <xn0dwxwao5p4ol400g@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:000000EE
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.158.234.226
Date: 6 Jan 2005 15:46:38 -0800
X-Trace: newsgroups.borland.com 1105055198 141.158.234.226 (6 Jan 2005 15:46:38 -0800)
Lines: 22
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail