Setting up the Kinect with Processing
In order to get the kinect to work with Processing you need to install a couple of things.
First of all you need to install Processing: https://processing.org/download/
Next you need SimpleOpenNI: https://code.google.com/p/simple-openni/downloads/detail?name=SimpleOpenNI-1.96.zip
Unzip to: Documents/Processing/libraries/
If you are on Windows you also need to download the Kinect SDK
Make sure to close Processing (command + q), or it won't find the SimpleOpenNI library.
In Processing Preferences check the box that says "Increase available memory to 256 MB" and change 256 to 1024.