title: get string from outside run programm
body: <p>I have jsp page with text field and button. Also i have jar of another project.
  When i click on the button the MAIN.class of the jar is called and program is running in independent window(JFrame).
  After user is finished with the program and exits, I need to get the String of program that is generated on exit and paste it into the textbox (The String is HTML code)</p>
  
  <p>Is anyone else having this problem and has a solution?
  Thanks
  Alex</p>