Posted By:
yang_shuai
Posted On:
Thursday, December 13, 2007 01:44 AM
Is this an eclipse bug? When i write something out to standard output stream and standard error strem, there is something wrong with the output order in eclipse. the output of the following program in eclipse and in command line is different. class fff { public static void main(String[] args) { try { int i = 8 / 0; } catch (Exception e) { e.printStackTrace(); System.out.println("aaa"); System.err.println("jjj"); } } } the output of eclipse is aaa java.lang.ArithmeticException: / by zero at fff.main(Gz.java:4) jjj and the output in command line
More>>
Is this an eclipse bug? When i write something out to standard output stream and standard error strem, there is something wrong with the output order in eclipse.
the output of the following program in eclipse and in command line is different.
class fff {
public static void main(String[] args) {
try {
int i = 8 / 0;
} catch (Exception e) {
e.printStackTrace();
System.out.println("aaa");
System.err.println("jjj");
}
}
}
the output of eclipse is
aaa
java.lang.ArithmeticException: / by zero
at fff.main(Gz.java:4)
jjj
and the output in command line is
java.lang.ArithmeticException: / by zero
at fff.main(Gz.java:4)
aaa
jjj
what's the problem?
this is my java version and eclispe version
D:eclipseworkspace estsrc>java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
------------------------
eclispe:
Eclipse SDK
Version: 3.4.0
Build id: I20070921-0919
<<Less