Big Moose Saloon
 Search | Java FAQ | Recent Topics Register / Login

# Xuggler using Tomcat on windows

J Das
Ranch Hand

Joined: Jul 27, 2011
Posts: 83

Hello everyone , I am developing a video sharing website , i have to achieve something like this.. an user uploads a video and a thumbnail image of that video would be generated. I am doing this on Netbeans 6.9.1 , using Tomcat and also have studied some Xuggler since a few days and so tried of using Xuggler. But my question is where should i install Xuggler ?? Inside Tomcat ??
I have installed Xuggler in 'lib' folder of my Tomcat. I have added the following environment variables---->>

CLASSPATH = .;.;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\commons-cli.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\logback-classic.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\logback-core.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\slf4j-api.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\xuggle-xuggler.jar;C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\share\java\jars\xuggle-xuggler-test.jar;

XUGGLE_HOME = C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib

Path = C:\Program Files (x86)\Apache Software Foundation\Apache Tomcat 6.0.26\lib\bin;

and I have included the 6 jar files of Xuggler which remains in lib>share>java under my Projects Libraries...

what i have done is the following..

VT.java ( this is the servlet to which the user posts the file )

Main.java ( this is the java class where the creation of thumbnails must take place )

Now , when i run my application and upload a video file , it gets uploaded in my Project directory but the Thumbnail images are not created and it gives the following errors:

what am i doing wrong ??? why are the images not generating ??? when i apply the same code for generating thumbnail images in a Java Application ( not Web Application ) , it creates the images , but when i do it a Web Application like above , I get errors..

Consider Paul's rocket mass heater.

subject: Xuggler using Tomcat on windows