String command = "javac -cp .:../sqljdbc.jar SetHash.java";
Process child = Runtime.getRuntime().exec(command);
try{
c= child.waitFor();
} catch (Exception ex){ex.printStackTrace();}
Hi…
I would like to know which value will be assigned to “c” variable in the above structure if the command runs successfully. Also I would like to know if there will be any change in the value that will be assigned to “c” if the command does end up with an error.
From https://bugs.java.com/bugdatabase/view_bug?bug_id=6296560 it will return 0 if the compilation was successful (with or without warnings) and 1 if it was not.