When I'm running the code below I get the error:
Cannot run program "query.sh": CreateProcess error=2, The system cannot find the file specified, Please check below code
I'm not sure how I can diagnose the root cause for its failure. What should I do to resolve the problem?
ProcessBuilder pb = new ProcessBuilder(FILE_PATH+SHELL_SCRIPT_NAME,
DB_INSTANCE,
DB_USER,
DB_PASS,
DB_NAME,
SQL_QUERY,
fileFormat.toString());
Process p = pb.start();
p.waitFor();