我有一个简单的 Eclipse 插件,它在激活时会出现以下错误:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://103.fwk8918249:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://103.fwk8918249:4/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
两个 URL 都解析为包中完全相同的 jar
libs/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class
- 我该如何解决这个问题?
- 为什么捆绑包会加载 jar 两次(“:1”和“:4”)?