Errors in code

void draw() is definetly a processing method, and its says in the title "Processing Wrapper for the OpenNI/Kinect library"

your book made a mistake, this is for processing.. maybe their is a processing and arduino program?