ds wrote on Mar 14th, 2008, 12:32am:From the error you mentioned it sounds like a it can't find the library at runtime, as opposed to compile time.
You might want to post your code
That's also my guess. But having no Java experience (besides using the PDE) I don't know what to about it.
I'm also using OpenGl so maybe the VM-Option has something to do with it. But I've also tried to change that to the path of the video library without luck.
I'm on Vista using Netbeans 6.0.1.
So here's my test code:
Code:
package CaptureTest1;
import processing.core.PApplet;
import processing.opengl.*;
import processing.video.*;
public class Main extends PApplet {
public static void main(String[] args) {
PApplet.main(new String[]{"CaptureTest1.Main"});
}
public processing.video.Capture cam;
public void setup() {
size(640,480);
background(150);
smooth();
cam = new Capture(this, 320, 240);
}
public void draw() {
fill(0,10,100);
rect(0,0,width,height);
stroke(100,0,30);
strokeWeight(5);
fill(50,20,10,100);
ellipse(mouseX,mouseY,10,10);
}
}
When I run the project I get this error:
Quote:init:
deps-jar:
compile:
run:
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: no QTJava in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at quicktime.jdirect.JDirectLinker$1.run(JDirectLinker.java:266)
at java.security.AccessController.doPrivileged(Native Method)
at quicktime.jdirect.JDirectLinker$1$PrivelegedAction.establish(JDirectLinker.java:
264)
at quicktime.jdirect.JDirectLinker.<clinit>(JDirectLinker.java:272)
at quicktime.jdirect.QTNative.loadQT(QTNative.java:33)
at quicktime.jdirect.QuickTimeLib.<clinit>(QuickTimeLib.java:17)
at quicktime.QTSession.<clinit>(QTSession.java:82)
at processing.video.Capture.<init>(Capture.java:145)
at processing.video.Capture.<init>(Capture.java:109)
at CaptureTest1.Main.setup(Main.java:20)
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(Thread.java:619)
but it keeps on running -without any visible window or anything. There'S just a progressbar in the lower right corner indicating "CaputeTest1 running". When I stop it it adds this to the Output Window.
Quote:BUILD STOPPED (total time: 19 seconds)
When I use 'Build Main Project' from the build menu I get this:
Quote:init:
deps-jar:
Compiling 1 source file to C:\Users\Daniel Kauer\Documents\NetBeansProjects\CaptureTest1\build\classes
compile:
Building jar: C:\Users\Daniel Kauer\Documents\NetBeansProjects\CaptureTest1\dist\netbeans_processing_template.
jar
Copy libraries to C:\Users\Daniel Kauer\Documents\NetBeansProjects\CaptureTest1\dist\lib.
To run this application from the command line without Ant, try:
java -jar "C:\Users\Daniel Kauer\Documents\NetBeansProjects\CaptureTest1\dist\netbeans_processing_template.
jar"
jar:
BUILD SUCCESSFUL (total time: 0 seconds)
running the jar from console yields the same error as above.