File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Trying to read all the compile errors ..." Watch "Trying to read all the compile errors ..." New topic
Author

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
Bartender

Joined: Aug 20, 2001
Posts: 1817

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 (www.TextPad.com) 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
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Also there are command-line redirection operators, like
javac MyClass.java 1 > out.txt 2>&1
This should work in Windows or Unix, it means, "compile MyClass.java, 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
SCJP, MCDBA
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:
http://www.coderanch.com/t/392498/java/java/fyi-solution-redirecting-javac-errors
good luck.
Jon


use the [CODE] tags - it makes it much easier for people to help you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to read all the compile errors ...