Re: How to load properties as resources?



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
.



Relevant Pages