Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trying to read all the compile errors ...

 
Linda Pan
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Francis Siu
Ranch Hand
Posts: 867
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do the MS-DOS like Linus or Unix which has pipes which the syntax like it |
 
Jon Dornback
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic