No Console found. How to get the console for my JVM?
问题 This is a follow-up question to this. I asked this question yesterday, and although it is not resolved yet, I tried to make some silly changes to the code to just make it compile once (replacing console.format() statements by System.out.print statements, and adding null as the second argument to the readLine() methods). Luckily the code did run, but it prints No console. (obviously because the JVM does not have a console device. Reference) So how can I get the console device, supposed to be