1

I am trying to get System Console in java developing using IDE like Eclipse or NetBeans. But I am not able to get the same.

If I jar the program and run it via command prompt, its working fine but thats not the case while running it in IDE.

How to get System console object that works with IDE console's ?

Suresh
  • 186
  • 2
  • 14
  • 3
    You can't. There is an Eclipse bug ticket opened for it. There is a work around for now that involves you having to emulate the Console when running within Eclipse. http://stackoverflow.com/questions/4203646/system-console-returns-null/11199326#11199326 – Andrew T Finnell Feb 12 '13 at 14:58
  • In Netbeans there is the same problem. Every time you try to get the Console (System.console()) you get a null. – Alex Apr 12 '14 at 20:16
  • Jetbrains IDEA, same problem – dan Nov 28 '14 at 01:32

0 Answers0