creating java editor

hi all

i am creatin a small application which performs some type of functionallity as any java ide does but i have a problem in one area in my application when i create a demo.java file i compile it through runtime.exec("javac "+filepath)

this creates class file now i want to run the applicaiton and want to show the output in output window. i run the class file through runtime.exec("java "+filepath) but i dont know how can i show the output in myapplication's output window.i mean how can i fetch the output generated by program .

any smallhelp will be appriciated

thanks

[609 byte] By [nj_javaa] at [2007-11-27 8:45:18]
# 1
Runtime.exec returns a Process object from which you can get the OutputStream or ErrorStream to which the process sends it output.i.eOutputStream os = Runtime.exec( somepath ).getOutputStream(); ICE
icewalker2ga at 2007-7-12 20:46:24 > top of Java-index,Desktop,Developing for the Desktop...