public void compile() {
        if (none())
            return;
        if (compileCommand == null || compileCommand.equals(""))
            return;
        compiling = true;
        try {
            System.out.println("Compiling: " + compileCommand);
            Process p = Runtime.getRuntime().exec(compileCommand);
            BufferedReader err = new BufferedReader(new InputStreamReader(p.getErrorStream()));
            String line;
            while ((line = err.readLine()) != null) {
                if ("debug".equals("debug")) {
                    System.err.println("Compiling: " + line);
                }
            }
            err.close();
            System.out.println("Compiling: done.");

        } catch (Exception e) {
            System.out.println(e.toString());
            Dialog.showError("Something went horribly wrong");
        }
        compiling = false;
    }