How do I call a perl script from java? Currently I have this code but a create process error =2 keeps coming up.
Process p = Runtime.getRuntime().exec("perl C:/Users/Mahish/Documents/PLUa/src//test.pl");
How do I call a perl script from java? Currently I have this code but a create process error =2 keeps coming up.
Process p = Runtime.getRuntime().exec("perl C:/Users/Mahish/Documents/PLUa/src//test.pl");
You need to set full path to your dir perl\bin
Example command to do this in CMD:
SET PATH=%PATH%;c:\perl\bin
and after that you can use:
Process p = Runtime.getRuntime().exec("perl C:/Users/Mahish/Documents/PLUa/src/test.pl");