Processing no compiles on Arduino UNO R3

I think I explained myself badly, the problem is that arduino writes in C and I know this, processing is a more simplified java and this also happens, my problem is that by writing an example with processing Exp. I run in processing but the arduino does absolutely nothing, instead running the Arduino ide and with his example of Blink everything works, in a few words running the arduno ide in the arduino and everything OK, instead run it with processing like the example does nothing.
Thank you
import cc.arduino.;
import processing.serial.
;

Serial serial;
Arduino arduino;

void setup() {
// println(serial.list());
println(Arduino.list());
String pname = Serial.list()[2];
print(pname);
// arduino = new Arduino(this,pname,57600);
arduino = new Arduino(this, Arduino.list()[2], 9600);

arduino.pinMode(9, Arduino.OUTPUT);
}

void draw()
{

arduino.digitalWrite(0, Arduino.HIGH);
delay(1000);

arduino.digitalWrite(9, Arduino.LOW);
delay(1000);
}