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(
    at java.lang.Runtime.loadLibrary0(
    at java.lang.System.loadLibrary(
    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(
    at processing.core.PApplet.handleDraw(
    at processing.awt.PSurfaceAWT$12.callDraw(
    at processing.core.PSurfaceNone$

Here is the whole code:

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

public class SoundExperiment extends PApplet {
    SinOsc sine; 
    public void settings(){
    public void setup(){
        sine = new SinOsc(this);;
    public void draw(){

    public static void main(String[] args) {
        // TODO Auto-generated method stub

Thank you!!

Sign In or Register to comment.