🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8188

Re: printing to the console

#8188
From: Torsten Welches
Date: Tue, 10 Apr 2001 20:00
32 lines
1840 bytes
Janene,

that's odd. Exception.printStackTrace prints to System.err which should end
up in your console window.
I am on NT as well and I just did a small test like this on the command
line - I saw the Exception trace?!

public class Tester {
    public static void main(String[] args) {
        Exception ex = new Exception();
        ex.fillInStackTrace();
        ex.printStackTrace();
    }
}

>javac Tester.java
>java -cp . Tester

Torsten

Janene McCrillis schrieb in Nachricht <3AD35CF9.3060007@lmco.com>...
>In my code I use the Exception.printStackTrace routines fairly
>extensively. This works great as long as I'm running in JBuilder.
>However, when I run my app from outside JBuilder, the messages don't
>show up on the console window (I'm on NT, so it's a little DOS window
>that comes up). What do I need to do to get these messages to show when
>running outside JBuilder?
>
>Janene McCrillis
>Lockheed Martin Space Systems
><jmccrillis@indra.com>
>
Technical Details
Message-ID: <3ad365df$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.gwi-ag.com!dnews
References: <3AD35CF9.3060007@lmco.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d6514d4e63a2a752
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-10 13:14:08 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Newsgroups: borland.public.jbuilder.java.language
References: <3AD35CF9.3060007@lmco.com>
Subject: Re: printing to the console
Date: Tue, 10 Apr 2001 22:00:53 +0200
Lines: 34
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 195.14.254.36
Message-ID: <3ad365df$1_2@dnews>
X-Trace: dnews 986932703 195.14.254.36 (10 Apr 2001 12:58:23 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!news.gwi-ag.com!dnews