log4j cannot find the log4jtest.properties?
When I use PropertyConfigurator.configure("log4jtest.properties");
I put this fil开发者_运维技巧e in the root folder of classes.
The eclipse reports
log4j:ERROR Could not read configuration file [log4j.properties]. java.io.FileNotFoundException: log4j.properties (The system cannot find the file specified)
What's wrong?
Make sure your properties file is in your classpath.
Check to see if it's being copied to the output folder with the compile classes. That ones got me before :-)
精彩评论