When I use System.console from Eclipse Helios, it always returns null.
However, when I use it directly from the command line (i.e., compiling and running java source code manually from the command line), I get a console object.
To find out why this is happening, I checked this link. Accordingly, when I run my Java code from Eclipse, the background task scheduler should start my JVM. What does it mean?
And how does my JVM start differently when I start it from the command line?
I also checked this link. Here, McDowell says cmd.exe is a console device. So, I got confused again, what exactly is a console device?
source share