🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2687

Re: Working Directory

#2687
From: ferhat haydar
Date: Mon, 05 Jun 2000 00:00
29 lines
1741 bytes
There is no such thing as current working directory in Java.
If you have a configuration file treat it as a resource (see
Class.getResourceAsStream()).
If you have to read a file pass its name as argument to the program.

As always... keep things simple...


mprader <michael.praderNOmiSPAM@zurich.com.invalid> wrote in message
news:18dae34d.6cae9544@usw-ex0108-062.remarq.com...
> Please help me...
>
> I try to start a Java Application from JBuilder.
> My problem is, that I have config files which I have to
> read at the start of the application. Furthermore there are
> some other files I have to read relative to that path.
> My project isn't in the same folder as the config file,
> therefore I have to start my application in that folder.
> But I didn't find a way to specifiy in JBuilder where to
> start my application.
>
> regards
>
> Mike
>
>
> * Sent from AltaVista http://www.altavista.com Where you can also find
related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is
Beautiful
Technical Details
Message-ID: <8hfj6u$2vj8$1@si05.rsvl.unisys.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <18dae34d.6cae9544@usw-ex0108-062.remarq.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: "ferhat haydar" <ferhat@sorry.com>
Subject: Re: Working Directory
Date: 2000/06/05
Message-ID: <8hfj6u$2vj8$1@si05.rsvl.unisys.com>
X-Deja-AN: 631173639
References: <18dae34d.6cae9544@usw-ex0108-062.remarq.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Complaints-To: news@rsvl.unisys.com
X-Trace: si05.rsvl.unisys.com 960188446 97896 192.146.252.125 (5 Jun 2000 07:00:46 GMT)
Organization: Unisys - Roseville, MN
X-MSMail-Priority: Normal
NNTP-Posting-Date: 5 Jun 2000 07:00:46 GMT
Newsgroups: borland.public.jbuilder.java.api