Reputation: 29
I have written the following code below:
import com.xuggle.xuggler.IContainer;
public class MediaPlayer {
public static void main (String[] args) {
IContainer container = IContainer.make();
if(container.open("file:///homes/sa303/NetBeansProjects/MoviePlayer1/src/Trailer/IronMan3.mp4",
IContainer.Type.READ, null) < 0) {
throw new IllegalArgumentException("Could not open");
}
}
}
I based it on the video tutorial http://www.youtube.com/watch?v=wdW6tUql154
However, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
I have saved the xuggle-xuggler.jar
file in the class path and it hasn't solved the problem.
Upvotes: 0
Views: 1316
Reputation: 2558
Cause Could be un-availability of dependency jars or version conflicts.
The following jars combination worked fine for me:
xuggle-xuggler-5.4.jar
slf4j-api-1.6.4.jar
logback-core-1.0.0.jar
logback-classic-1.0.0.jar
Note: Add them in the library folder using "Add jar/Folder" Option.
Upvotes: 1