I ran into an error running the Open Kinect examples with Processing 4 (on Mac): NoClassDefFoundError: /com/sun/jna/Library.
The issue seems to be with jna.jar.
The Java/Contents folder has jna.jar and jna-platform.jar, these are not in the core/library subfolder. Copying these to the core/library subfolder solves the problem.
I´ve already solve the Java folder problem and the “NoClassDefFoundError: /com/sun/jna/Library” has gone!
But now my Kinect is now i have another Error
"No Kinect devices found"strong text
Failed to open camera subdevice or it is not disabled.Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled.There are no kinects, returning null
I have already installed libfreenect from Homebrew in my terminal but still not working. Any help?
If you’re trying to run the core OpenKinect examples (~Feb 2022), it looks like you need to import the Processing video library to get things to work. Without it, you’ll throw an error like the one described here. This was a fix for me.
import org.openkinect.freenect.*;
import org.openkinect.processing.*;
import processing.video.*; // <-- add this line