I am trying to run a python script using runtime in java, but the command doesn't work, I got this error:
Cannot run program "python": CreateProcess error=2, The system cannot find the file specified
Even i set the PATH variable with the executable python.
public void call(){
String command= "python C:/Python27/lib2.py";
Process p = Runtime.getRuntime().exec(command);
}
PATH = "C:\Python27"
PATH?execwithnew String[] { "python", "C:/Python27/lib2.py" }as an argument?