How to import a library into a Arduino program?
Your code looks like you are using Java. Or are you using the Arduino IDE.

import processing.serial.*;


looks like Java code. If you are using the Arduino IDE it won't accept that command.

To import a library in C, the command is #include.