Using the Processing libraries: CLASSPATH
In order to use the Processing libraries from Java, your
javac and java need to be able to find the
Processing libraries (the .jar files). You can use the
CLASSPATH environment variable to do this.
On Mac with Processing installed in the default location
(/Applications), the command line is:
export CLASSPATH=.:/Applications/Processing.app/Contents/app/*
To set your CLASSPATH automatically when you open a
new Terminal window, include that line in your .zshrc
(or .bashrc) file in your home directory.