无法加载库:xuggle;版本:5;使用POM

时间:2014-01-23 19:06:35

标签: java maven pom.xml xuggler xuggle

我正在尝试使用Xuggle,在尝试部署时,我收到以下错误,下面是我的POM文件。希望有人可以告诉我我缺少的东西

 13:55:34.965 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle; version: 5; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem
Exception in thread "main" java.lang.UnsatisfiedLinkError: no xuggle in java.library.path  
    at java.lang.ClassLoader.loadLibrary(Unknown Source)  
    at java.lang.Runtime.loadLibrary0(Unknown Source)  
    at java.lang.System.loadLibrary(Unknown Source)  
    at com.xuggle.ferry.JNILibraryLoader.loadLibrary0(JNILibraryLoader.java:268)  
    at com.xuggle.ferry.JNILibraryLoader.loadLibrary(JNILibraryLoader.java:171)  
    at com.xuggle.ferry.JNILibrary.load(JNILibrary.java:161)  
    at com.xuggle.ferry.FerryJNI.<clinit>(FerryJNI.java:16)  
    at com.xuggle.ferry.Ferry.<clinit>(Ferry.java:25)  
    at com.xuggle.xuggler.XugglerJNI.<clinit>(XugglerJNI.java:19)  
    at com.xuggle.xuggler.Global.<clinit>(Global.java:238)  
    at com.ngc.h264.H264.<clinit>(H264.java:23)

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>h264</groupId>
    <artifactId>h264</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <build>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <id>xuggle repo</id>
            <url>http://xuggle.googlecode.com/svn/trunk/repo/share/java/</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>org.jcodec</groupId>
            <artifactId>jcodec</artifactId>
            <version>0.1.6-3</version>
        </dependency>
        <dependency>
            <groupId>xuggle</groupId>
            <artifactId>xuggle-xuggler</artifactId>
            <version>5.2</version>
        </dependency>
    </dependencies>
</project>

此外,查看我的Maven依赖项,我有以下内容:

  1. jcodec-0.1.6-3.jar
  2. xuggle-xuggler-5.2.jar
  3. SLF4J-API-1.6.4.jar
  4. 公地-CLI-1.1.jar
  5. 的logback核-1.0.0.jar
  6. 的logback-经典1.0.0.jar
  7. 思想?

1 个答案:

答案 0 :(得分:3)

根据他们的博客网站,迁移到5.2到5.4修复了这个问题。

经过测试和确认