The button works fine. However, when I click it, nothing happens. No script is launched. But I can see âHiâ in my Processing terminal so we know that launchSketch() function is triggered
I also tried exec() function, turns out it will just crash the application.
System I am using:
Mac M1, Processing 4; But I also tried my non-M1 mac with Processing 3. Not working.
@svan
Thanks for the reply. Now it works! However, when I clicked the controlp5 button, it actually opens two target script windows instead of one. This is one last issue I need to figure it out!
Try running your arguments in Terminal. processing-java is in usr/local/bin on my system. When I try to run it with ./ I get this error: /Applications/Processing.app/Contents/PlugIns/jdk-11.0.12+7/Contents/Home/bin/java: No such file or directory. My Processing app has jdk-17.0.2+8 which is not the version its looking for.
This works from the command-line on my system: processing-java --sketch=/Users/yourName/Documents/Processing/mySketchFolder --run but so far canât run it with launch(). Youâll need to get the most recent processing-java by selecting it from the Tools menu. Also with âsketchâ stop with the folder; donât add xxxx.pde (sketch name).