I am trying to call python file from java. but it throws following error.
java.io.IOException: Cannot run program "python": CreateProcess error=2, The system cannot find the file specified
The code that I have tried is :
Process p = Runtime.getRuntime().exec("python C:\\Project\\Script\\Test.py");
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
System.out.println(in.readLine());
what could be the problem?