Migration to Java (from processing). Using processing core.jar