To put this simply, I have a java application that generates a certain .txt file, and a python script that uses this text file to generate a graph using Plotly. When I run the script on its own, it works just fine. The java application also correctly generates the text file, then the python script is called.
I have tried two ways to call the script:
Process p = Runtime.getRuntime().exec(../python_scripts/);
and
ProcessBuilder pb = new ProcessBuilder("python"," ../python_scripts/ScatterPlot.py");
pb.start();
It works just fine from terminal, just not when called from my java program. The file is obviously found since no exception is thrown.