All the processing sketch here are written by Java due to some extending functions provided by it.
HOW TO COMPILE SOURCES IN ECLIPSE
You should add core.jar file which normally located in PROCESSING_HOME/core/library to your classpath. For detail information please refer to https://processing.org/tutorials/eclipse/