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?