processing-sound icon indicating copy to clipboard operation
processing-sound copied to clipboard

ClassNotFoundException: processing.sound.SoundFile when trying to play .wav file

Open OfekGiv opened this issue 7 years ago • 3 comments

I'm having an issue running this simple code as it says: ClassNotFoundException: processing.sound.SoundFile

import processing.sound.*; SoundFile file;

void setup(){ size(800,800); background(255);

file = new SoundFile (this,"BuzzerEffect.wav"); file.play(); } void draw(){ }

I'm using Processing 3.4 on Windows 10

OfekGiv avatar Dec 06 '18 16:12 OfekGiv

Is it possible that you don't have the Sound library installed? It isn't by default, but you can do so very easily using Processing's built-in Contribution Manager, just search for "Sound".

kevinstadler avatar Dec 08 '18 03:12 kevinstadler

I have the Sound library installed. I tried using the Minim library (after installing it from the Contribution Manager) and I get the same error.

OfekGiv avatar Dec 08 '18 08:12 OfekGiv

Has anyone figured out the problem? I'm struggling with the same one.

lulxiao avatar Jan 22 '21 06:01 lulxiao

I was able to reproduce it on Processing 4.3 (running on Win11) When importing (installing) a library to Processing there is a directory created separately from the installation folder usually in "My documents" folder, which in my case was connected to OneDrive. Changing the directory in the Preferences in the Processing to another folder, and reinstalling the library solved this error.

ziqqur4t avatar Feb 05 '24 18:02 ziqqur4t