Should log4.properties be on the classpath?

前端 未结 6 1350
清酒与你
清酒与你 2020-12-01 16:55

I\'m having some problems putting my log4j.properties file on classpath. I can use it when I\'m developing (Eclipse Indigo) but, when I export my app as a JAR, I can\'t.

6条回答
  •  无人及你
    2020-12-01 17:56

    I tried the answer of Jesper, and at first it didn't work. Then I tried with

    Class-Path: lib/ lib/log4j-1.2.15.jar
    

    And it worked after that.

提交回复
热议问题