if you have a sketch called Test.pde
- navigate to application.macosx/Test.app/Contents/Java
- then call the following line
java -cp "*" Test
-cp "*"
makes all the jars in the directory available to java
Test
ist the main class name, in Processing usually the name of the Sketch / Main .pde