arduino 3d controller

Have you got it all set up or are you just trying to run the processing bit?

Check that the Arduino is spitting out numbers first by opening up a terminal session (at the right speed).

Then close that down and open up processing. Note the example has three files associated with, so all three must be in the same folder. Also you must drag the other two files into the main window so that they appear as tabs in the main window.