Problem understanding libraries

I am pretty sure (not absolutely certain) that the code you are trying to load on the Arduino is code for Processing (which ends in a .pde extension as well) - not code for the Arduino.