Dear friends
I want to run a Python executable file in Java
In windows i installed Python and and execute this file easily in command line mode (this file accept some argument for its procedure)
D:\pyhon27\python D:\python27\cp_wordnet.py 2 2 2 2r 2e 3ssd 2dfdf 2 1 2 2
Now i want to do same thing in Java code, i means i should cal cmd and execute that line on that, i have already tried these commands
(The 'path' is String and equal to "D:\pyhon27\python D:\python27\cp_wordnet.py 2 2 2 2r 2e 3ssd 2dfdf 2 1 2 2")
Process p = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+ path); Process p = Runtime.getRuntime().exec("cmd /c "+ path); Process p = Runtime.getRuntime().exec("rundll64 SHELL64.DLL,ShellExec_RunDLL "+ path); Process p = Runtime.getRuntime().exec(path);
but i haven't had result !!
could somebody pleas help me