我当时正致力于创建我的第一个Xuggler媒体应用程序。我通过观看他们关于如何创建第一个媒体应用程序的视频进行编码。
代码
package demo;
import com.xuggle.xuggler.IContainer;
public class GetContainerInfo {
public static void main(String[] args) {
if(args.length!=1){
throw new IllegalArgumentException("no file");
}
IContainer container = IContainer.make();
if(container.open(args[0],IContainer.Type.READ,null)<0){
throw new IllegalArgumentException("could not open");
}
}
}错误
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 我有依赖项吗?
是的,我知道!我有所有的依赖项。我在创建项目时导入了它们。
图片:

是什么导致了这个错误?我该如何解决它?
发布于 2012-12-24 01:36:49
来自SLF4J manual
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J:
> See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.打印此警告是因为在您的类路径上找不到slf4j绑定。将绑定添加到类路径后,该警告将立即消失。假设您添加了slf4j-simple-1.7.2.jar,以便您的类路径包含: slf4j-api-1.7.2.jar slf4j-simple-1.7.2.jar ...
发布于 2013-04-05 20:56:35
原因可能是依赖jars不可用或版本冲突。
在类路径中添加以下jars对我来说效果很好:
xuggle-xuggler-5.4.jar
slf4j-api-1.6.4.jar
logback-core-1.0.0.jar
logback-classic-1.0.0.jar
https://stackoverflow.com/questions/14013035
复制相似问题