error Arduino UNO to control servo serial

i make these code with processing prog to make your arm robot work with serial port with arduino uno board but i cant make prog in microprocessor to make the servo motor motion.

my code processing http://paste2.org/p/1919527

can any one tell me the code put in micro?

This is your Processing code?

ttp://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/traverse.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/serial.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/mouse.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/keyboard.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/fileIO.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/drawShape.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/draw.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/arm.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/SVG.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/Node.pde
http://www.sccs.swarthmore.edu/users/12/abiele1/processing/E5projV1208/applet/E5projV1208.pde

my project page 
http://www.sccs.swarthmore.edu/users/12/abiele1/E5RoboticArm/

Hard to believe that even compiles.

There are only two functions you need to use on the Arduino. Serial.available() will tell you how many bytes there are to read, and Serial.read() will read one of them.

then what i do to complete the project

then what i do to complete the project

Read this http://mattgemmell.com/2008/12/08/what-have-you-tried/. Then, write some code.