• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to store errors in.....

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,
How can I store the errors from the javac compiler in a DOS file ?
the normal redirection does not work....
... please write exact DOS command ( errors to go in a txt file ). I am using JDK 1.3
thanks in advance,
Ashish
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no DOS command that can help you when you are using jdk 1.3.
 
Ashish Agnihotri
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
than can you pl. tell me what is way out .. I mean If I want to still log all my errors...
thanks
ashish
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ashish,
I use the editor text pad for editing the .java files. Evaluation copy is downloadable at www.textpad.com
You can configure text pad so that the javac compiler can be called from within the textpad.
Go to preferences in configure menu of textpad, point to javac and add it on to the tools. Once it is added javac will be available in the tools menu and you can compile the .java code from within textpad.
The errors returned by javac compiler will appear in a separate window called "command results" in the text pad which can be saved in text format.
This way you can log your errors. (Though not a dos command!!)
Hope this helps.
Kalidas.
 
Ashish Agnihotri
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kalidas :
Yeah u r right. I am using UltraEdit and it too has this functionality. I was juz curious if we can do it from DOS.
thks,
Ash
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know that DOS supports the redirection of stdout and stdin, but I don't know that you can redirect stderr. I have been told that javac output is done through stderr, and that is why standard DOS redirection (command > file.txt) doesn't work.
 
reply
    Bookmark Topic Watch Topic
  • New Topic