Hi Steven / Yin Ming,

 To Steven, 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".

(Im using Windows 2000 Server)

regards,
S.Vasanth Kumar.

--- In [EMAIL PROTECTED], Yin Ming <[EMAIL PROTECTED]> wrote:
> 
> Ah, how do you compile programs? By input command in console? OK, 
two
> ways:
> 
> 1. if you use an IDE, or editors such as uedit32, editplus, they 
will
> record all the messages.
> 
> 2. If you input "javac classes.java" in console, there is a powerful
> tool called pipe
> 
> javac classes.java >compile-message.txt 2>error-message.txt
> 
> Error messages will be stored in the error-message.txt, and others 
will
> be stored in compile-message.txt. 
> And if you want to store these two in same file, do this one:
> javac classes.java >all-messages.txt 2>&1
> 
> This works fine in both unix and win2k.
> 
> On Sat, 23 Oct 2004 11:10:03 -0000
> sm_steven <[EMAIL PROTECTED]> wrote:
> 
> > 
> > Hi All
> > 
> > Is it possible to create a list file while compiling a Java 
program 
> > using the javac command ? If so, how ?
> > 
> > The idea, of course, is that the Compiler may send the Messages 
to 
> > the List file rather than to the Screen, so that the Messages may 
be 
> > studied and the Program corrected.
> > 
> > (As you know, when sent to the Screen, the earlier messages might 
> > disappear.)
> > 
> > TIA
> > Steven
> 
> 
> --
>           殷  鸣
>           客服部 教育训练处
>           Training division / Customer Service Department 
>           南京神州数码三商信息系统设备有限公司
>           Mercuries  DC  Financial  Systems  Ltd .210038
>           南京经济技术开�`区尧新大�"349号 邮编
:210038
>           No.349 Yaoxin Road,Economy & Technology Development 
Zone, Nanjing, China
>           TEL:+ 86 25 85801333 ext. 321
>           FAX:+ 86 25 85804133
>           Email:  [EMAIL PROTECTED]








------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/5cFolB/TM
--------------------------------------------------------------------~-> 

If you have any comments or questions, submit it on the message board.
NO spam/ads/job posting or you will be BANNED from this group. Exception can be made 
it happen by notify me ahead of time.
all new members' message will be verified by me (spam..) before it get posted. 
Yahoo! Groups Links

<*> To reply to this message, go to:
    http://groups.yahoo.com/group/java_official/post?act=reply&messageNum=17260
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/java_official/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to