• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

how to view all the errors?

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am working in Java from the DOS prompt. What should i do if i want to see all the compilation errors?( If i get, say, 10 errors, i get only the last 4 after the scroll...) I tried redirecting the compile results like this

javac StrEq.java > errtxt.txt
The errtxt file is created but it doesn't contain anything...
it takes 0 bytes on seeing the directory listing...
Any clues?
Shree
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using NT, go to properties and increase the height of the buffer size.
 
shree vijay
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using windows 98.
Is there a way out?
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hummmm. Hummm. Hummmmm.
Apu not having much success. Have you tried unix, the redirection will work there.
Actually, in the abscence of creating your own compiler, you can create your own class to compile and conserve output of the compiler. Bloody ridiculous, but what the hey.


[This message has been edited by Apu Nahasapeemapetilon (edited October 02, 2000).]
 
shree vijay
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apu,

I don't get that explanation, could you explain?
Shree
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I am working in Java from the DOS prompt. What should i do if i want to see all the compilation errors?( If i get, say, 10 errors, i get only the last 4 after the scroll...) I tried redirecting the compile results like this
javac StrEq.java > errtxt.txt
The errtxt file is created but it doesn't contain anything... it takes 0 bytes on seeing the directory listing...


Use this instead:
javac -Xstdout StrEq.java > errtxt.txt
Marilyn
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marilyn,
-Xstderr won't work with JDK 1.3; they've removed the X function compatibility.
David J. Eck includes a small program, cef.java, to do re-direction on Win98 systems. He has an online book Introduction to Programming Using Java and includes the code and instructions in an Appendix, Some Notes on Java Programmin Environments
------------------
Jane
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the info, Jane. It's too bad that Sun dropped their support for this. I think it frequently can be a big issue with java newbies.
Marilyn
 
rubbery bacon. crispy tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic