Re: Newbie question on windows/java/tcl I/O

From: Cameron Laird (claird_at_lairds.com)
Date: 06/16/04


Date: Wed, 16 Jun 2004 01:19:55 -0000

In article <10ch70ophi6u45@corp.supernews.com>, I explained:
>In article <10cgipm5sb1knce@corp.supernews.com>, I suggested:
>>In article <82427ea2.0406100247.516beeff@posting.google.com>,
>>Petter ?sterling <petter6618389@hotmail.com> wrote:
                        .
                        .
                        .
>>Does your Java-coded program not write its exception reports to
>>stderr?
>
>I've confused things. I hope to unsnarl them now.
>
>Petter e-mailed me privately. I'll take the liberty of quoting
>the heart of his reply verbatim:
> Well I'm new to the windows world and feel kind
> of confused by the I/O channels compared to UNIX.
>
> The java program catches most exceptions so it
> wont crash. To be able to catch the exeptions in
> test I asked the developers to write them to
> stderr (that's what we called it in unix anyway:).
> To make this happen they use System.err.println().
> Doesn't this funtion print to stderr?
>It'll be a while before I can give this the care it deserves.
>Perhaps others will help, in the meantime.
>
>Petter, please be aware that what you're attempting is reason-
>able. A couple more rounds of correction, and you should find
>success. If you need immediate and/or private help, I have to
>charge <URL: http://phaseit.net/technical_support.html >.
>Otherwise, comp.lang.tcl should eventually clear up all these
>matters with you.
                        .
                        .
                        .
A correct System.err.println() should indeed write to
stderr, even under Windows. I recommend you start by
confirming that's your situation.

Windows I/O channels certainly do confuse many of us
coming from Unix. I'm sure we can help you get through
this. Correct use of [catch] is likely to be at the
heart of it. You might want to read <URL:
http://wiki.tcl.tk/catch >.

Your Tcl program controls the Java application. Does
the latter print a single exception to stderr, and exit
immediately, or might it print many messages to stderr?

-- 
Cameron Laird <claird@phaseit.net>
Business:  http://www.Phaseit.net


Relevant Pages

  • Re: Frequency multiplication required
    ... Well all that supposed experience hasn't helped the OP with his signal ... processing problem has it. ... So the short answer is no, you don't have any real experience with heart sounds. ... I don't think that the OP doesn't have a consistent, well thought out specification or least one that doesn't confuse me at this point in time. ...
    (comp.dsp)
  • Re: A gap in Cantors diagonal argument ?
    ... might be misleading. ... That's the heart of your problem. ... You confuse numbers with ...
    (sci.math)
  • Re: A gap in Cantors diagonal argument ?
    ... might be misleading. ... That's the heart of your problem. ... You confuse ...
    (sci.math)
  • Re: subclassing question
    ... You confuse a visibility of a method ... with its access rights. ... Argument overloading matching. ... Every name in the base class (including private ones) is visible ...
    (microsoft.public.vc.language)
  • Re: Whats the real killer, voltage or amperage?
    ... John Fields wrote: ... No. a miniscule current through your heart, at just the right time, ... can confuse it and cause it to get out of sync, and then, bye-bye. ...
    (sci.electronics.design)