What am I missing?
You're missing the fact that you tried to compile Processing (Java) code in the Arduino (C/C++) IDE.