Java – how to install / configure xuggle to get unsatisfiedlinkerror?

I've just started using xuggle. I've downloaded everything to eclipse and included it in referenced libraries, but I did a very simple test,

package com.xuggle.xuggler.demos;
import com.xuggle.xuggler.IContainer;

public class getContainerInfo {
public static void main (String [] args){

     IContainer myContainer = IContainer.make();
    }
}

It causes a lot of errors,

2011-06-12 16:26:52,142 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: xuggle-xuggler; version: 3; Visit http://www.xuggle.com/xuggler/faq/ to find common solutions to this problem
Exception in thread "main" java.lang.UnsatisfiedLinkError: no xuggle-xuggler in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at com.xuggle.ferry.JNILibraryLoader.loadLibrary0(JNILibraryLoader.java:265)
    at com.xuggle.ferry.JNILibraryLoader.loadLibrary(JNILibraryLoader.java:168)
    at com.xuggle.xuggler.XugglerJNI.<clinit>(XugglerJNI.java:19)
    at com.xuggle.xuggler.IContainer.<clinit>(IContainer.java:1457)
    at com.xuggle.xuggler.demos.getContainerInfo.main(getContainerInfo.java:9)

Solution

Here's what I found There is confusion because starting with xuggler 5.2 and later, you do not need to install it and set environment variables

When searching for answers on the Internet, you may be confused by the mixed steps of finding the old version and the new version The steps in (b) below are no longer applicable

I finally solved the problem by ensuring that the jar is in the J2EE container lib and upgrading from xuggler 5.2 to 5.4 After that, the link error disappeared

(A) This applies to all versions, starting with the xuggler docs:

(B) This only applies to xuggler pre 5.2 from: xuggler FAQ:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>