Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nigel Wade Newsgroups: comp.lang.java.programmer Subject: Re: How do you set java to read properties in relative path ? Date: Mon, 02 Mar 2015 13:07:32 +0000 Lines: 12 Message-ID: References: <3044c107-8eec-4c22-8954-83f1fce6bc6e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Zw98ATZmq0cGSje+A7vnDQjD9Sv3Z3gG1hMnQLWmlUlB9zyOyY Cancel-Lock: sha1:tYHmiRxwGV1PMbTACwU/gOwZ5Ho= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 In-Reply-To: <3044c107-8eec-4c22-8954-83f1fce6bc6e@googlegroups.com> Xref: csiph.com comp.lang.java.programmer:31261 On 02/03/15 11:02, Ajay Paul wrote: > How do you set java to read properties in relative path in local file system. > > I can do it absolute path but not in relative path. > On the off chance that you mean "relative to the jar", rather than relative to your current location ( which is what a relative path is relative to), there was a thread about this a couple of weeks ago. Search the archives for something to do with executable jars, and writing to files.