How do I get log4j to pick up a properties file.
I'm writing a Java desktop app which I want to use log4j. In my main method if have this:
PropertyConfigurator.configure("log4j.properties");
The log4j.properties file sits in the same directory when I open the Jar.
Yet I get this error:
log4j:ERROR Could not read configuration file [log4j.properties]. java.io.FileNotFoundException: log4j.properties (The system cannot find the file specified)
What am I doing wrong?