I have run an octave script from Java using
ProcessBuilder pb = new ProcessBuilder("./ProcessImg");
Process p = pb.start();
But after executing these statements, the program isn't waiting for the process to finish and comeback.
How do I make the program wait for it? I want to use the file spit out by that script.
Currently I am running the program twice, so that first time it creates the files and also an exception,the second time the program uses the previously created file.