Run Processing code from the terminal

Hey, I was wondering if it is possible to run processing code through a terminal by specfying one .pde file and compiling and launching that way. Thanks for any answers!

Look under the Tools menu. Reference: https://github.com/processing/processing/wiki/Command-Line

  1. Install “processing-java”
  2. Type the following command in Terminal, substituting the path to your sketch folder (don’t include fileName):

processing-java --sketch=/full/path/to/your/sketch/folder --run

2 Likes

When running through command line, how does one install libraries and change maximum ram? I didn’t find these options. Also maybe you have to install libraries through the editor.

A clearup would be nice :smiley:

I believe you would need to do both of these things by making changes to the editor.

1 Like