commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <>
Subject Re: [configuration] Properties files in jars
Date Mon, 15 Nov 2004 15:56:10 GMT
I haven't checked but I think you have to remove the leading slash when 
the configuration file is loaded from the classpath :

<properties fileName=""/>

The file must be located at the root of the JAR in the classpath.

Emmanuel Bourg

Oliver Heger wrote:
> Grant,
> do you work on Windows or on Unix? Which exception do you get when you 
> ommit the leading slash?
> I supose the correct form would be just the name of the properties file 
> with a leading slash. But there seems to be a bug, so that such names 
> are interpreted as absolute file names and then the classpath is not 
> searched at all. I will have a closer look on that.
> Oliver

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message