Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Robbie Brown Newsgroups: comp.lang.java.programmer Subject: Re: How do you set java to read properties in relative path ? Date: Mon, 02 Mar 2015 16:24:22 +0000 Organization: A noiseless patient Spider Lines: 23 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 Injection-Date: Mon, 2 Mar 2015 16:23:39 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="896c419cace3c343dd1aaf493906dad2"; logging-data="2041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18THw51NphDgUCZ3ZkP3FApchMxLPGHcko=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: <3044c107-8eec-4c22-8954-83f1fce6bc6e@googlegroups.com> Cancel-Lock: sha1:e81AJ71+ego8ixCLg4QHvJiY4Kk= Xref: csiph.com comp.lang.java.programmer:31265 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. > Put the properties file in the same directory as the root of your binary(compiled) class hierarchy, by default, in Kepler it's bin. So, in Navigator view you would have myproject myproject/bin myproject/bin/props.properties myproject/bin/com myprojecy/bin/com/mycompany ...etc works for me -- Not floundering ... just fishing