开发者

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 :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜