You need a command to run the python script. I did not use jython. The script contains the todoist-api library. The script is executed by the command:
try { String cmd = "/home/kiryushin/projects/python/stm/venv/lib/stmtest1.py"; Process p = Runtime.getRuntime().exec(cmd); } catch (IOException e){e.printStackTrace();}
I get an exception -
" java.io.IOException: Cannot run program "/home/kiryushin/projects/python/stm/venv/lib/stmtest1.py": error=13, ΠΡΠΊΠ°Π·Π°Π½ΠΎ Π² Π΄ΠΎΡΡΡΠΏΠ΅"
Changed access parameters including via chmod -r 777. OC Ubuntu 18.04 lts.
String cmd = "python /home/kiryushin/projects/python/stm/venv/lib/stmtest1.py";
? - Alex Yu