On Fri, 17 Dec 2004 18:00:23 +0100, Coret Bob <[EMAIL PROTECTED]> wrote: > Hi all, > > We're building our own AbstractJavaSamplerClient but we run into a problem > when we want to read a property file using the ClassLoader.getSystemResource > method. Whatever we try in regard to the directory/filename > (file:///d:/etc/test.properties, d:\etc\test.properties, .\test.properties, > test) or the placement of the (in d:\etc, jmeter bin, jmeter lib) the file > cannot be found. > > If we try the same in a seperate Java client (so without Jmeter) the file can > be found?!?! >
I think the difference could be a classpath problem. Would it not be easier to use the java.util.Properties.load() method to load the properties file? This is what JMeter.java does in the getProperties() method. S. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

