serial problem

Hi

I'm new to Arduino.

I have tried running the Graph example but keep getting the following error:

error: 'import' does not name a type In function 'void setup()': In function 'void draw()': In function 'void serialEvent(int)': At global scope:

And highlights the following in the code

import processing.serial.*;

Thanks

James

Were you trying to run the Processing code on the Arduino? The code beginning with the line

import processing.serial.*;

is intended to be run on the Arduino's serial partner, not on the Arduino itself.

M