I am trying to make a simple media player using the following tutorial:
http://www.youtube.com/watch?v=9aJvPPzhyik
To start off with, I will explain what I have done up to now, I downloaded xuggler without using Apache Maven or Apache Ivy, I went into version 5.1 and the and downloaded only the xuggle-xuggler-5.4.jar, I imported this into eclipse and it worked because I started writing my code and all the media class’s had no errors.
I needed a flv file so I just put in any random youtube link into this website http://keepvid.com/?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvNoKguSdy4Y and got my flv video downloaded to my desktop, now here is where I think the problem is, on the tutorial it show that he has to put this flv video into Xuggle/Workspace/MediaToolsIntro1 but since I just downloaded one jar file I dont have a xuggle folder and only have a jar file on my desktop so I placed it into Users/Me/Workspace/Myjavaproject. I ran the code and got the following error:
Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
What have I done wrong, when the programmer in the guide video does it he gets a QT file created next to his flv but I get an error, the only difference between me and him is the flv file location.
I Suggest you to download all
jarfiles and place them in your Class path.