pb.redirectErrorStream(true);
pb.directory(FileUtil.getCwd());
Process p = pb.start();
// The waitFor() must done after reading the input and error stream of the process
console.processStream(p.getInputStream());
p.waitFor();
if (p.exitValue() == 0) {
console.append("Compiled successfully.\n");
console.setTitle("Compiled successfully.");