To use your processing sketches without the processing ide, e.g. to iclude them in an automated workflow, you can export your application from processing.
When “Export Application” is selected from the “File” menu, a dialog box opens and you can select which platforms you want to export to. You may also select if you want the application to run full screen (in present mode). A folder will be created for each of the operating systems selected; each folder contains the application, the source code for the sketch, and all required libraries for a specific platform. *
Linux is just a shell script, which can probably be used on most Unix platforms (there’s almost nothing to it) *
Linux does not mean GNU/Linux in this case, but processing’s Linux export option. I normally copy/paste the code from the resulting shell script to include it in bigger scripts. Because this code is one endless line (depending on the number of libraries) , I tend to restructure the code. To execute the scripts without GUI, I combine it the with headless hack.
SKETCHNAME=isaac_1_00# EXPORT DISPLAY FOR PROCESSING HEADLESS ################################ export DISPLAY=localhost:1.0 ##########################################APPDIR=$(dirname "$0") SKETCH=$APPDIR/src/$SKETCHNAME/application.linux/lib/$SKETCHNAME.jarCR=$APPDIR/i/lib/1050/core.jar PDF=$APPDIR/i/lib/1050/pdf.jar TXT=$APPDIR/i/lib/1050/itext.jar GMRTV=$APPDIR/i/lib/1050/geomerative.jar BTK=$APPDIR/i/lib/1050/batikfont.jar JGL=$APPDIR/i/lib/1050/jogl.jar GLGN=$APPDIR/i/lib/1050/gluegen-rt.jar JBX=$APPDIR/i/lib/1050/JBox2D-2.0.1-b250-Library.jar: JBXDS=$APPDIR/i/lib/1050/JBox2D-2.0.1-b250-Library_ds.jar: PBX=$APPDIR/i/lib/1050/pbox2d.jar: FSC=$APPDIR/i/lib/1050/fisica.jar:LIBS=$SKETCH:$CR:$PDF:$TXT:$GMRTV:$BTK:$JGL:$GLGN:$JBX:$JBXDS:$PBX:$FSCjava -Djava.library.path="$APPDIR" \ -cp "$LIBS" \ $SKETCHNAME