実行コマンド
スケッチフォルダは気にしないで。。
$ processing-java --sketch=`pwd`\\$1 --force --run
エラー文
そもそもErrorなのか?と思うようなUsageが表示された。原因不明。
「なにもしてないのに」と思ったときは何かしている。
Usage: PApplet [options] <class name> [sketch args]
See the Javadoc for PApplet for an explanation.
Finished.
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.
Could not run the sketch.
main関数
あるclass
にてmain
と名付けたクラスメソッドを実装していた。つまり、以下のような構造。
void setup(){
hoge = new Hoge();
}
void draw(){
hoge.main();
}
これがまずかったっぽい。mainを別の名前(display)に変えたら動いた。
反省
mainとかそういう名づけはしない。