Well, I have a c program that is stored in /bin, I want to execute the program from a JAVA GUI but it's not working..
I tried
Process p = Runtime.getRuntime().exec("lexical " + nameOfFile+"/Source.cpp " + nameOfFile+"temp.c");
p.waitFor();
nameOfFile holds the absolute path for the workspace directory, lexical is my c program


ProcessBuilder, notRuntime.exec()