java - Xuggler 生成错误消息

标签 java eclipse dependencies xuggle xuggler

我正在致力于创建我的第一个 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.  

我有依赖性吗?

是的,我愿意!我拥有所有依赖项。我在创建项目时导入了它们。
图片:
enter image description here

是什么导致了该错误以及如何解决它?

最佳答案

来自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.

This warning is printed because no slf4j binding could be found on your class path. The warning will disappear as soon as you add a binding to your class path. Assuming you add slf4j-simple-1.7.2.jar so that your class path contains: slf4j-api-1.7.2.jar slf4j-simple-1.7.2.jar ...

关于java - Xuggler 生成错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14013035/

相关文章:

windows - 如何在exe中捆绑依赖项

android - 如何更正 'Instrumentation run failed due to ' java.lang.IllegalArgumentException''

javascript - TypeScript 库的存储库应该包含 JS 版本吗?

java - 使 JDBC 插入查询更快

java - 图像和 JSP 的问题

java - Windows Tomcat7 SSL CA 证书说是自签名的

java - JQuery ajax 重定向更改 JSP 页面的一部分(如果成功),否则以弹出形式更改

java - 我创建的每个main()函数上的ArrayIndexOutOfBoundsException

android - 在 Galaxy Tab 中自动连接到 Debug模式

c# - 无法更新由 .Net Reactor 加密的文件的依赖项