Hi all Processing folks, I am having trouble running .class file on command line. Since I want to run my sketch in headless mode on a Mac, I followed this solution (https://github.com/processing/processing/issues/3996) to build my sketch.
So basically, say helloWorld.pde is the name of my sketch and the sketch is stored in folder helloWorld, on Terminal, I ran “processing-java --sketch=/Users/xxx/helloWorld --output=/Users/xxx/helloWorld_output --build”. This generates a .class file in folder helloWorld_output, but I couldn’t run the .class file when I do “java -cp . helloWorld” or “java helloWorld” or even “java -cp /Users/xxx/helloWorld_output helloWorld”.
I am using Processing 3 and I also downloaded Java 10 for command line tools. I have read that Java 10 is not compatible with Processing 3 but I am not sure if this is the issue on Terminal.
Please help me if you have encountered a similar issue before.
Forgot to mention the error it gives -
Error: Could not find or load main class helloWorld
Caused by: java.lang.NoClassDefFoundError: processing/core/PApplet