
20 Dec
2011
20 Dec
'11
6:15 p.m.
On 20.12.2011 18:50, ceki wrote:
Hi Peter,
If I understand correctly, you have shown that invoking System.out.println is slow with javaw. Do you know why? If the reason was known, for example it was due to exceptions being thrown, ConsoleAppender could address that problem.
Writing to System.out does not throw an exception under javaw.
Is it possible to check whether an app is running under javaw and not java? ConsoleAppender could disable itself under javaw.
I don't think it is possible to distinguish between java and javaw by System properties. In JDK 1.6, it is possible to distinguish between java and javaw by invoking System.console: http://goo.gl/Nljdl -- Ceki http://twitter.com/#!/ceki