創建一個Maven的項目,我有如下jar文件:sl4j-log4j12-1.7.25但在執行我得到下面的錯誤: SLF4J:您SLF4J的請求的版本99年6月1日綁定不兼容[1.5.5,1.5.6] SLF4J:有關更多詳細信息,請參閱here。我已經在Eclipse
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:346)
嗨,謝謝..我添加了與slf4j-log版本相同的slf4j-api版本。但執行時得到了以下錯誤: –
嗨,謝謝..我已經添加了與slf4j-log版本相同的slf4j-api版本。但是Igot出現以下錯誤:SLF4J:類路徑包含多個SLF4J綁定。 SLF4J:在[jar:file:/ C:/Users/tcsalku/Downloads/cmdChatbot/cmdChatbot/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]/impl中找到綁定/StaticLoggerBinder.class] SLF4J:有關說明,請參閱http://www.slf4j.org/codes.html#multiple_bindings。 SLF4J:實際綁定的類型爲[org.slf4j.impl.Log4jLoggerFactory] log4j:WARN無法爲記錄器找到appender(org.alicebot.ab.Bot)。 –