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 › Erreur avec QTJava.
Page Index Toggle Pages: 1
Erreur avec QTJava. (Read 705 times)
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();
 }
}
      }
}


Re: Erreur avec QTJava.
Reply #1 - Jan 3rd, 2009, 5:27pm
 
Mandatory questions: do you have installed QuickTime? Which version? What is your system?
Re: Erreur avec QTJava.
Reply #2 - Jan 3rd, 2009, 9:46pm
 
Yes, I have Quicktime Player, version 7.5.5.
My system is Windows Vista.

And I have installed QTJava.zip in 'jre6/jre/lib/ext'.

Thank's for the help.
Re: Erreur avec QTJava.
Reply #3 - Jan 3rd, 2009, 9:49pm
 
Bonjour.

Je vois que vous habitez près de Paris.
Vous pouvez donc me répondre en français, car j'habite le Nord.
De préférence par mail à:

noirmainpierre@yahoo.fr

Merci beaucoup de votre aide.
Page Index Toggle Pages: 1