IntelliJ & Open Kinect for Processing

Hi all,

I’m using Processing and IntelliJ due to the availability of Gradle (I’m not programming for Android, though) and because Processing’s IDE lacks some features that other development environments have.

I’ve imported Processing’s libraries using your official tutorial (works flawlessly), but I’m having issues with the openkinect_processing library.
I’ve added the following dependencies (Windows 10, x64):

  • Classes: openkinect_processing.jar
  • Native library locations: folders v1/msvc and v2/msvc

I must’ve missed something because I get the following error in IntelliJ:

java.lang.NoClassDefFoundError: com/jogamp/common/nio/Buffers
	at org.openkinect.processing.Kinect.<init>(Unknown Source)
	at MySketch.settings(MySketch.java:47)
	at processing.core.PApplet.handleSettings(PApplet.java:954)
	at processing.core.PApplet.runSketch(PApplet.java:10786)
	at MySketch.main(MySketch.java:332)
Caused by: java.lang.ClassNotFoundException: com.jogamp.common.nio.Buffers
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 5 more

47th line: kinect = new Kinect(this);

My code works in Processing’s IDE.
What am I missing?

Thanks in advance.