When I use System.console from Eclipse Helios, it always returns null.
However, when I use it directly from command line (i.e. compiling and executing a java source code manually from command prompt), I do get a Console object.
To know, why this happens I checked this link. According to it, when I run my Java code from Eclipse, a background job scheduler must be starting my JVM. What does this mean?
And how differently is my JVM started when I start it from command line?
I also checked this link. Here McDowell says that cmd.exe is a console device. So then I am again confused that exactly is a console device?
Because it is a bug #122429 of eclipse
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With