File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Xuggler using Tomcat on windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Xuggler using Tomcat on windows" Watch "Xuggler using Tomcat on windows" New topic

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..

index.jsp ( user uploads a video file from this page ) ( this is the servlet to which the user posts the file ) ( 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..
It is sorta covered in the JavaRanch Style Guide.
subject: Xuggler using Tomcat on windows
It's not a secret anymore!