How can you use Processing Command Line (I always have an error for filling in --sketch argument)?

I have followed this article http://hoshi-sano.hatenablog.com/entry/2013/08/01/213236 so that I can compile and run my sketch from command line.

However there is always an error in the --sketch argument that says that my sketch is not exist, but it is actually there. Here are some screen shots.

What went wrong? How can I run my sketch with Command Line?

Answers

  • AFAIK, when we export a sketch via CTRL + E or CONTROL + SHIFT + E, we get some ".exe" or ".bat" file so we can launch it.

  • I am going to use another editor.

  • Bump! I need help on this issue :(.

  • Solve this problem. Apparently in Windows if you want to use Processing command line you need to provide the absolute path for both --sketch and --output.

    For example in Mac or Linux you can just use.

    processing-java --run --sketch=MySketch --output=MySketch\output --force

    In Windows it should be.

    processing-java --run --sketch="C:\MyProcessingSketch\MySketch" --output="C:\MyProcessingSketch\MySketch\output" --force

Sign In or Register to comment.