title: Compile and Run Java code from Swing GUI
body: <p>I am building a GUI in Java (Swing) and I have to execute Java code from that. For the sake of testing simple code like printing HelloWorld in Java will be ok.</p>
  
  <p>I have seen the forum questions and I just know that I have to invoke Operating System (I am using Windows7) to execute that compilation task.</p>
  
  <p>Thank you.</p>
  
  <p>P.S: I have tried with Runtime.getRuntime().exec() command but no success.</p>