Re: How to load properties as resources?
- From: im <im@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 11:27:10 -0500
On Tue, 31 Jan 2006 07:58:28 -0800, Mr. Land wrote:
> Ahh, yes, and this feels like the crux of my question: How can I get
> the class loader returned from:
>
> ClassLoader.getSystemClassLoader();
>
> ...to find my resources? No path that I can think of seems to work.
>
> Thanks again.
Something like this may work:
InputStream i = getClass().getResourceAsStream("/Common.properties");
Imre
.
- References:
- How to load properties as resources?
- From: Mr. Land
- Re: How to load properties as resources?
- From: Roedy Green
- Re: How to load properties as resources?
- From: Mr. Land
- How to load properties as resources?
- Prev by Date: Limit Single Instance
- Next by Date: Re: Beginner CSV error
- Previous by thread: Re: How to load properties as resources?
- Next by thread: Encryption/Decryption Streams Cause UTFDataFormatException
- Index(es):
Relevant Pages
|