aspose file tools*
The moose likes Beginning Java and the fly likes Javac Compiler- How to output the error messages it generates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Javac Compiler- How to output the error messages it generates" Watch "Javac Compiler- How to output the error messages it generates" New topic
Author

Javac Compiler- How to output the error messages it generates

David Eilloc
Greenhorn

Joined: Jul 19, 2001
Posts: 12
Don't know if right forum....
Don't laugh but when I compile my class, i get quite a few errors that means that I cannot read the top most errors in the DOS box.
Does anyone know a way I can output this error information to a text file or at least let me see it?
I have tried the basic DOS commands like '> text.txt', '>> txt.txt' and '/p' but they just give either a blank file or and invalid switch warning....
Please help me, its driving me mad
david eilLOC
Angela Poynton
Ranch Hand

Joined: Mar 02, 2000
Posts: 3143
Sending this to Java in General Beginner Forum.


Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
Shivaji Marathe
Ranch Hand

Joined: Jan 11, 2002
Posts: 203
When you are in the DOS box, click in the MSODS icon on the top left corner of the window and select the Properties menu. Select the layout tab, from that tab set the Window size options.
You can set the DOS box to be any size you want.
Check out all the other tabs and select the settings that suit you.
I have WinNT 4.0 on my machine . I assume you will see similar menus and tabs on whatever Windows platform you are running.
HTH
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

David,
do a search for "redirect err" in this forum. You should find links to a number of threads that discuss this topic.
For me, the easiest solution would be to use TextPad ( http://www.textpad.com ). It's a good editor and it captures the output for you.
Junilu
David Eilloc
Greenhorn

Joined: Jul 19, 2001
Posts: 12
Hi Shivaji Marathe & Junilu Lacar
Cheers for the tips, I have modified the properties of the DOS box and got it so that I can see (all!) my errors....
I'm too much of a Windows baby and just not used to using the old DOS box (blame gates for that!)
Thanks and oh am I happy to get over that one
Cheers
david eilLOC
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javac Compiler- How to output the error messages it generates
 
Similar Threads
checking runtime errors
System.out and System.err
How to log java.exe errors in bat file
How to output in italics and underline parts of a text file content.
getting output from DOS into GUI