Just saw this, but please note that Processing is
not being run
on the Arduino, but rather it is controlling the Arduino through the serial connection. And you can control an Arduino via a serial connection using just about
any programming language, including Python and JavaScript.
So again, you can't run Java or Processing on the Arduino. Keep researching.