The problem you have is that the native libraries that Xuggle uses cannot be found. I suspect that there is a conflict in your classpath.
If by "all the jars" you mean the jars in the download page, you are not supposed to download all of them. At the Xuggler downloads page it says that either you download the xuggle‑xuggler.jar
that contains the native libraries for all operating systems or you choose a specific architecture.
On an attempt to run the example you link to, I have done the following:
- Downloaded xuggle‑xuggler.jar (v.5.2). I didn't use maven, so as per the instrunctions at the download page I opened the Xuggle POM file to check and get the dependencies using the specific versions.
- Using a little help from google those dependencies are: slf4j-1.6.4, commons-cli 1.1, logback 1.0, (contains two of the required jars), xuggle-utils 1.20 and
junit
which you can ignore.
After downloading you can find inside the zip files the 5 jars (slf4j-api-1.6.4.jar, commons-cli-1.1.jar, logback-core-1.0.0.jar, logback-classic-1.0.0.jar, xuggle-utils-1.20.688.jar
) described in the POM file that are the dependencies of thexuggle‑xuggler.jar
. - Create a project in your favourite IDE (I use Eclipse) import those 6 jar files to your project and you are good to go.
Following the procedure above I was able to run your test program succesfully in a Windows machine.
I hope that helps.