title: How to compile a program (with gcc)?
body: <p>I am writing a cross-platform IDE, and am wondering what the best way to compile a program (with gcc) using java code.  (It's also a cross-language IDE)</p>
  
  <p>Should I access the command prompt/terminal?</p>
  
  <p>Also can I have some example code?</p>