We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › how to run Processing in shell command
Page Index Toggle Pages: 1
how to run Processing in shell command (Read 2114 times)
how to run Processing in shell command
May 21st, 2009, 9:25am
 
Hello,

I am trying to export a sketch as applet using shell command. But I don't have enough knowledge on how to do this via shell command. I found this on the dev.processing.org:
http://dev.processing.org/source/index.cgi/tags/processing-1.0.3/app/src/processing/app/Commander.java?view=markup

This page suggests that it is possible using "processing --export-applet" in the shell command line.
But I couldn't get it to work. I guess it is about this line:
" To build the command line version, first build for your platform,
then cd to processing/build/cmd and type 'dist.sh'. This will create a
usable installation plus a zip file of the same. "

Can anyone help me on this? I don't understand what that means.
What is "to build a command line version, build your platform"? How do I do that?


Re: how to run Processing in shell command
Reply #1 - May 21st, 2009, 9:38am
 
I guess I found my answer for the first part:
http://dev.processing.org/build/

but still not sure how to export, say a sketch called "test" from the command line.
Re: how to run Processing in shell command
Reply #2 - May 21st, 2009, 9:53am
 
Got some errors on the command line, but I fixed them by copy/pasting files manually:
Sinan-Ascioglu-Macbook:macosx sascioglu$ ./run.sh
[JavaAppLauncher Error] Non-String for 8 value in 'Properties' sub-dictionary in 'Java' sub-dictionary of Info.plist
Sinan-Ascioglu-Macbook:macosx sascioglu$ cd ..
Sinan-Ascioglu-Macbook:build sascioglu$ cd cmd
Sinan-Ascioglu-Macbook:cmd sascioglu$ ./dist.sh
Creating command-line distribution for revision 0166...
cp: ../../xml: No such file or directory
cp: ../../candy: No such file or directory
cp: ../macosx/work/lib/pde.jar: No such file or directory
cp: ../macosx/work/lib/core.jar: No such file or directory
Creating tarball and finishing...
Sinan-Ascioglu-Macbook:cmd sascioglu$ ls
dist                  processing-cmd-0166
dist.sh                  processing-cmd-0166.zip

Ben Fry, FYI.

Thanks,
Sinan!
Page Index Toggle Pages: 1