Hello @svan ,
Cool beans!
I certainly learned a lot dissecting this material. :)
I tried this and was successful and sharing some tips below.
Windows 10 or 11 Users
You can get the file paths in a command prompt with where command:
C:\Users\GLV>where python
C:\Users\GLV\AppData\Local\Programs\Python\Python313\python.exeC:\Users\GLV>where py5-run-sketch.exe C:\Users\GLV\AppData\Local\Programs\Python\Python313\Scripts\py5-run-sketch.exe
You can’t cut and paste above into your Java code!
You MUST choose one these options:
- replace the
\
with a/
- replace the
\
with a\\
Reference to explain the above:
Missing semicolon error when there really is one - #4 by glv
I created strings at the top of code for my file paths to use later in the source code provided:
String sMod = "C:/Users/GLV/AppData/Local/Programs/Python/Python313/python.exe";
String sImp = "C:/Users/GLV/AppData/Local/Programs/Python/Python313/Scripts/py5-run-sketch.exe";
String sFolder = "D:/Users/py5_code";
This is also in the responses to one of your links and much simpler:
You might also try dragging the
.jar
files directly onto the Processing editor.
– Kevin Workman
Commented Mar 25
References:
py5 | ixora.io < James Schmitz website
https://py5coding.org/ < Welcome to py5! website
:)