Sound library does not work in Eclipse

Hi all,

I have got stuck by this trouble. I am now using Eclipse to write the programs of Processing, and I kept having troubles. The latest one I am facing is regarding the Sound library. I created a SinOsc object and use

sine = new SinOsc(this);

to initialise a new object. It works fine in Processing, but when I run it in Eclipse, the error messages pop out:

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: no MethClaInterface in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at processing.sound.MethClaInterface.(Unknown Source)
    at processing.sound.Engine.(Unknown Source)
    at processing.sound.Engine.(Unknown Source)
    at processing.sound.Engine$LazyHolder.(Unknown Source)
    at processing.sound.Engine.start(Unknown Source)
    at processing.sound.SinOsc.(Unknown Source)
    at SoundExperiment.setup(SoundExperiment.java:15)
    at processing.core.PApplet.handleDraw(PApplet.java:2378)
    at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1527)
    at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)

Here is the whole code:

import processing.core.PApplet;
import processing.sound.*;

public class SoundExperiment extends PApplet {
    SinOsc sine; 
    
    public void settings(){
        size(600,600);
    }
    
    public void setup(){
        sine = new SinOsc(this);
        sine.play();
    }
    
    public void draw(){
        
    }

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        PApplet.main("SoundExperiment");
    }
}

Thank you!!

Sign In or Register to comment.