Error not displayed in the console (Mac OS X Leopard) [message #333604] |
Thu, 18 December 2008 06:10 |
Eclipse User |
|
|
|
Originally posted by: lehong.loria.fr
Hi,
I am a new Mac user. I have a strange problem when using Eclipse 3.4.1
on Mac OS X Leopard. I couldn't find any solution on the Internet and
newsgroups.
The problem: when there is an error in the program, Eclipse does not
report it and the stack trace messages to the Console view.
When I execute the following error-intended simple program
public class Tester {
public static void main(String[] args) {
System.out.println("Begin");
Object o = null;
System.out.println(o.toString());
System.out.println("End");
}
}
Eclipse reports only the line "Begin" to the Console View. The program
terminates, and no errors are printed.
I've worked around in the Run and Console sections of the Preference of
Eclipse, try to change or restore all default settings but it still does
not work.
I tried to add the argument -consolelog to the Eclipse configuration
file, but it didn't help either.
I also tried to run the program in the Terminal and the
NullPointerException error is well reported to the Terminal. So, I think
this is not the problem of the Java compiler on my Mac.
Could anyone show me any idear to solve my problem?
Thank you very much.
|
|
|
Powered by
FUDForum. Page generated in 0.03092 seconds