Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31262
| X-Received | by 10.236.110.38 with SMTP id t26mr25240074yhg.1.1425306811238; Mon, 02 Mar 2015 06:33:31 -0800 (PST) |
|---|---|
| X-Received | by 10.140.23.112 with SMTP id 103mr345722qgo.32.1425306811218; Mon, 02 Mar 2015 06:33:31 -0800 (PST) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!j7no10233544qaq.1!news-out.google.com!c1ni203qar.1!nntp.google.com!i13no10908534qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Mon, 2 Mar 2015 06:33:31 -0800 (PST) |
| In-Reply-To | <3044c107-8eec-4c22-8954-83f1fce6bc6e@googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=198.175.154.213; posting-account=560NpwkAAAAjZhnufnBda3TTmLgoejEe |
| NNTP-Posting-Host | 198.175.154.213 |
| References | <3044c107-8eec-4c22-8954-83f1fce6bc6e@googlegroups.com> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <def3e5c8-08e8-4bc3-bdeb-fd77eb7eca5a@googlegroups.com> (permalink) |
| Subject | Re: How do you set java to read properties in relative path ? |
| From | Ajay Paul <ajaykpaul@gmail.com> |
| Injection-Date | Mon, 02 Mar 2015 14:33:31 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.java.programmer:31262 |
Show key headers only | View raw
On Monday, 2 March 2015 16:33:58 UTC+5:30, 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. Dear All, In eclipse: I have placed my properties file in the same location as the class file. Just want to set a relative path in java to read the values from the properties file. But can't do that. I get the message: Exception in thread "main" java.io.FileNotFoundException: .\Props.properties (The system cannot find the file specified) It works fine when I add as an absolute path wrt the file system. Is there a specific setting in the eclipse which needs to be configured/enabled to do that ?
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How do you set java to read properties in relative path ? Ajay Paul <ajaykpaul@gmail.com> - 2015-03-02 03:02 -0800
Re: How do you set java to read properties in relative path ? Nigel Wade <nmw@ion.le.ac.uk> - 2015-03-02 12:39 +0000
Re: How do you set java to read properties in relative path ? Nigel Wade <nmw@ion.le.ac.uk> - 2015-03-02 13:07 +0000
Re: How do you set java to read properties in relative path ? Ajay Paul <ajaykpaul@gmail.com> - 2015-03-02 06:33 -0800
Re: How do you set java to read properties in relative path ? Jeff Higgins <jeff@invalid.invalid> - 2015-03-02 10:57 -0500
Re: How do you set java to read properties in relative path ? Robbie Brown <rob@example.com> - 2015-03-02 16:24 +0000
csiph-web