suchen

Heim  >  Fragen und Antworten  >  Hauptteil

eclipse - 使用velocity时报java.lang.NoClassDefFoundError,是否少了什么包?

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
at org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:200)
at org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:591)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:264)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:118)
at Test2.main(Test2.java:23)

伊谢尔伦伊谢尔伦2798 Tage vor898

Antworte allen(1)Ich werde antworten

  • 阿神

    阿神2017-04-21 10:59:26

    少avalon-logkit。
    建议用maven管理jar依赖。用denpendency tree,所有包之间的依赖关系一目了然。

    Antwort
    0
  • StornierenAntwort