I need to run a .sh file from my Java code with out passing any arguments. I already tried doing it with
Runtime.getRuntime().exec("src/lexparser.sh");
and
ProcessBuilder pb = new ProcessBuilder("src/lexparser.sh");
Process p = pb.start();
Both of the above methods didn't work. Is there any other method to run a .sh file form Java?