eclipseprocessingminimprocessing-ide

Minim library in Eclipse


I programmed a sketch that uses Minim with the Processing IDE. Everything is working fine.

I'm now planning to improve it, and moved to Eclipse, as I have done with many other projects. I configured the build path to include minim.jar. All the imports seem to work fine. But I can't compile the project because I get the following error when I initialize de Minim instance varialbe:

The constructor Minim(PApplet) is undefined

The declaration gives no error, so I reckon the library loads fine. The exact same code works in the processing IDE but not in Eclipse. Here's my code:

import processing.core.*;
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;

public class MinimTest extends PApplet {    
    Minim minim;    
    public void setup() {
        minim = new Minim(this); // error in this line
    }
}

I don't have a clue on what's going on. Any pointers will be very much appreciated.

Thanks in advance.


Solution

  • Make sure you add all the .jar files used by the Minim library to the source path:

    jl1.0.jar       minim.jar       tritonus_share.jar
    jsminim.jar     mp3spi1.9.4.jar
    minim-spi.jar       tritonus_aos.jar
    

    It should compile fine after that