Opened 13 years ago

Closed 11 years ago

#64 closed defect (fixed)

Java.exe outputs to stderr

Reported by: Yoda_Java6 Owned by:
Priority: blocker Milestone: GA4
Component: general Version: 1.6.0-b19 Beta 2
Severity: highest Keywords:
Cc:

Description

Seems like all output from running java.exe from CMD goes to stderr.
All OS/2 apps have always sent output to stdout, and that is what
all OS/2 tools expect.

Previous Java versions did the same !

EX:

(I want to know how to use Java:)

Java.exe -? | more

...everything scrolls out of screen ... :-(

We need Java6 to have OS/2 personality,
as all other OS/2 apps - and all previous JAVA versions.

Change History (8)

comment:1 Changed 13 years ago by dmik

Milestone: EnhancedGA2
Severity: medium

comment:2 Changed 12 years ago by Silvan Scherrer

Milestone: NextGA3

comment:3 Changed 12 years ago by Silvan Scherrer

Milestone: GA3GA4

this is not really a showstoper, but we will decide for GA4 if we do that or not.

comment:4 Changed 11 years ago by Silvan Scherrer

Priority: minormajor
Severity: mediumhighest

comment:5 Changed 11 years ago by Silvan Scherrer

Priority: majorblocker

i marked it as a blocker, because we finaly should decide if we change that at all.

comment:6 Changed 11 years ago by dmik

I see that the MacOS build of Java prints the help screen (-?) to stdout instead of stderr (everything else, e.g. -version, seems to be printed to stderr). This must be a custom Mac patch (since the OpenJDK code always prints the help screen to stderr). I this convinces me to do the same on OS/2.

comment:7 Changed 11 years ago by dmik

Done in r407.

Note that you won't be able to use the standard MORE command anyway as it is bogus -- it won't translate \n on input to \n\r on output so you will get shifted lines. This is NOT a bug of Java (or of its OS/2 build) since Java doesn't perform this translation by default (even on Windows).

Note also that GoldenCode? Java 1.4.1 seems to do the same hack (only for the -? option too). But there it doesn't work properly: any redirection of java -? to a file or piping it to e.g. more just suppresses all output at all. Looks like a bug in GoldenCode? Java.

comment:8 Changed 11 years ago by dmik

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.