We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › video trouble P5/eclipse/netbeans
Page Index Toggle Pages: 1
video trouble P5/eclipse/netbeans (Read 2124 times)
video trouble P5/eclipse/netbeans
May 5th, 2008, 6:02pm
 
Hi guys!

 I've been hitting my head on the walls for some hours with this error:

 Trying to work with video in processing/eclipse I allways get an error that doesn't happen when in P5 IDE???

 I stripped it down to the simplest application possible, tried both the video and gsvideo libs and I still get the same error.

The code is:

Code:

import processing.core.*;
import processing.video.*;
//import codeanticode.gsvideo.*;

public class GSVideoTest extends PApplet{

private static final long serialVersionUID = 1L;
Movie m;

public void setup()
{
size(640, 480, P3D);
m = new Movie(this, "station.mov");
m.loop();
}

public void movieEvent(Movie m) {
m.read();
}

public void draw()
{
image(m, 0,0);
}
}


and the error:

Exception in thread "Thread-3" java.lang.NoClassDefFoundError: quicktime/std/StdQTException
at GSVideoTest.setup(GSVideoTest.java:13)
at processing.core.PApplet.handleDisplay(PApplet.java:1390)
at processing.core.PGraphics.requestDisplay(PGraphics.java:690)
at processing.core.PApplet.run(PApplet.java:1562)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: quicktime.std.StdQTException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 5 more



 I added core.jar, video.jar and gsvideo.jar to my project and put the file "station.mov" in the data folder inside "bin".
 What do I need to add more?? I am preety desperate here!! :S

 Thanks in advance!! and sorry for bugging you all the time.
Re: video trouble P5/eclipse/netbeans
Reply #1 - May 6th, 2008, 11:40am
 
Still can't solve it... going crazy here!

 I have tried Netbeans and it throws the same error. The problem occurs whenever I try to load a video file.

 Please, any tips on what to do or just some guidelines or keywords to research will be greatly apreciated.
Re: video trouble P5/eclipse/netbeans
Reply #2 - May 6th, 2008, 2:54pm
 
davidjonas wrote on May 6th, 2008, 11:40am:
Still can't solve it... going crazy here!

 I have tried Netbeans and it throws the same error. The problem occurs whenever I try to load a video file.

 Please, any tips on what to do or just some guidelines or keywords to research will be greatly apreciated.

Read up on how the Java CLASSPATH works, and how that can be handled in Netbeans. This is standard Java stuff, but it's the sort of thing that we hide in Processing because, as you're finding, it's a nightmare to deal with.
Re: video trouble P5/eclipse/netbeans
Reply #3 - May 6th, 2008, 3:22pm
 
Thanks man! Thats what I needed, now I have something to research and try to solve this problem. As soon as I find the solution I'll post saying what was wrong.

 Thank you! hasta la vista!!
Re: video trouble P5/eclipse/netbeans
Reply #4 - May 24th, 2009, 4:51am
 
HELLO !
DID IT WORK ???
DID U FIND THE solution ??
I want to run a video capture from eclipse using processing.video
Re: video trouble P5/eclipse/netbeans
Reply #5 - May 26th, 2009, 9:55am
 
I can't say what to do on Eclipse (probably something similar) but on NetBeans I added Quote:
-Djava.library.path="C:\folder\that\holds\your\library\files;%PATH%"

to "project/run/vm options". I could then use the serial library. Haven't tested with video.

When exporting, I threw the *.dll, etc into the same folder as my project *.jar.
Page Index Toggle Pages: 1