Hi @Neoncodes,
Welcome to the forum
The error is due to the COM port connection. At which COM Port are you trying to connect your arduino?
Then replace the port and the baud rate in line
MyPort = new Serial(this, “Your COM port goes here”, insert you baudrate here);
The following tutorial should also help you in the first steps
https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing/all
Best regards