pierre59
YaBB Newbies
Offline
Posts: 41
Erreur avec QTJava.
Jan 3rd , 2009, 3:40pm
I have this error with my program below. Please, help me. Thank's. Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: no QTJava in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) 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 quicktime.jdirect.QTNative._getLock(QTNative.java:120) at quicktime.jdirect.QTNative.<clinit>(QTNative.java:115) at quicktime.util.QTUtils.<clinit>(QTUtils.java:33) at processing.video.MovieMaker.<clinit>(MovieMaker.java:110) at movie$fenetre_processing.setup(movie.java:43) at processing.core.PApplet.handleDraw(PApplet.java:1377) at processing.core.PApplet.run(PApplet.java:1305) at java.lang.Thread.run(Unknown Source) Code ---- import processing.core.*; import processing.opengl.*; import processing.video.*; import java.applet.*; import java.awt.*; public class movie extends Frame { fenetre_processing processing1; MovieMaker mm; public static void main(String[] args) { new movie().setVisible(true); } public movie() { creer_fenetre_processing(); } public void creer_fenetre_processing() { add(processing1 = new fenetre_processing()); // Obligatoire pout initialiser la classe PApplet. processing1.init(); } class fenetre_processing extends PApplet { public void setup() { size(320, 240); // Save uncompressed, at 15 frames per second //mm = new MovieMaker(this, 320, 240, "drawing.mov"); // Or, set specific compression and frame rate options mm = new MovieMaker(this, width, height, "drawing.mov", 30, MovieMaker.ANIMATION, MovieMaker.HIGH); background(160, 32, 32); } public void draw() { stroke(7, 146, 168); strokeWeight(4); // Draw if mouse is pressed if (mousePressed) { line(pmouseX, pmouseY, mouseX, mouseY); } // Add window's pixels to movie mm.addFrame(); } public void keyPressed() { if (key == ' ') { // Finish the movie if space bar is pressed mm.finish(); // Quit running the sketch once the file is written exit(); } } } }