First of all, Im sorry tht i hv thought u r asking how to
change the Output/Error streams to a JList while Runtime. But
actually u hv asked how to get the output of "javac" command. I hope
from next time i will understand the question 100% before replying...
To Yin Ming, I hv tried ur syntax to get the msgs of "javac"
command, but the problem is both the outputs of compiler/error msgs
are redirected to the second file only, im not getting anything in
the first file.
For ex. if im using deprecated method & im using
javac -deprecation Classes.java >Compile.txt 2>Error.txt
still the output goes only to "Error.txt" only, im not getting the
compiler output to the first file "Compile.txt".