java – System. Console () returns null from eclipse, but the command prompt is good

When I use eclipse Helios system Console, it always returns null

However, when I use it directly from the command line (that is, manually compiling and executing java source code from the command prompt), I get a console object

You know, why did this happen? I checked the this link According to it, when I run my java code from eclipse, the background job scheduler must start my JVM What's the meaning of this?

How different is my JVM when I start it from the command line?

I also checked this link Here McDowell says CMD Exe is a console device So I'm confused again. Is that really a console device?

Solution

Because it is a bug in eclipse #122429

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>