Article View: borland.public.jbuilder.java.swing
Article #9750Re: finding the application path
From: Tor Iver Wilhelmsen
Date: Mon, 17 Jan 2000 00:00
Date: Mon, 17 Jan 2000 00:00
10 lines
823 bytes
823 bytes
Alan Shiers <jshiers@istar.ca> writes:
> String st = App.path() + "text.txt";
In Java, you would get it using ClassLoader's getResource(). The
"application path" concept is alien to Java in many respects, but try
System.getProperty("user.dir").
But I would rather try and look for a Java concept which is better
suited than Windows' application path.
Technical Details
Message-ID:
<uln5pumv8.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<388105F5.EB860769@istar.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c2ac60c7065ef2cf X-Google-Attributes: gid111d45,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: finding the application path Date: 2000/01/17 Message-ID: <uln5pumv8.fsf@sds.no> X-Deja-AN: 573657297 Sender: towi@SDSA1761 References: <388105F5.EB860769@istar.ca> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing