File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Trying to read all the compile errors ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Trying to read all the compile errors ..." Watch "Trying to read all the compile errors ..." New topic

Trying to read all the compile errors ...

Linda Pan
Ranch Hand

Joined: Sep 24, 2001
Posts: 96
When I compile my java code, it turns out that I have 13 errors. Since I am using the MS-DOS box to view these errors, I can't see the first errors because it keeps scrolling down. How can I see the complete listing?
Joel McNary

Joined: Aug 20, 2001
Posts: 1824

Change the settings on the DOS Prompt. Right-click on the menu/Icon in the upper left corner and select "properties". Switch to the Layout tab and increase teh Screen Buffer Size. I always use 400 myself.
Another solution is to Download TextPad ( or some other java-aware text editor. You can run javac straight from textpad, and it will produce an output file that you don't lose the top of.

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Also there are command-line redirection operators, like
javac 1 > out.txt 2>&1
This should work in Windows or Unix, it means, "compile, send normal output to the file "out.txt", and send errors to the same place."
Joel's earlier suggestions are probably preferable, but if you need more options...

"I'm not back." - Bill Harding, Twister
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
Do the MS-DOS like Linus or Unix which has pipes which the syntax like it |

Francis Siu
Jon Dornback
Ranch Hand

Joined: Apr 24, 2002
Posts: 137
i ran in to the same problem awhile back, and posted some info on it here:
good luck.

use the [CODE] tags - it makes it much easier for people to help you.
I agree. Here's the link:
subject: Trying to read all the compile errors ...
It's not a secret anymore!