You can call getClass() on the Properties object you are loading into.
public static Properties pathProperties = null;
//load in path locations for this environment
static
{
pathProperties = new Properties();
String pathPropertiesFile = "/PATHS.conf";
InputStream paths = pathProperties.getClass().getResourceAsStream(pathPropertiesFile);
if(paths == null)
{
throw new Error("PathConstants::static initializer:: Unable to find configuration file PATHS.conf ");
}
try
{
pathProperties.load(paths);
}
catch(IOException ioe)
{
throw new Error("PathConstants::static initializer:: IOException caught throwing error. " + ioe.getMessage());
}
}
HTH, tom