I'm on a Windows machine and using Eclipse. My java code is invoking a python script by using :
Process p = Runtime.getRuntime().exec("cmd /c e:\\dev\\CodeBase\\WebService\\src\\com\\rest\\service\\PythonScript.py");
On running the code it opens the prompt for choosing a program to run the script with. What can I do to make it run implicitly?
pythonto the path of your script; not cmd /c. It should like likepython my_scriptpath.pyin your command.