Take the 2-minute tour ×  I am trying to write Java console
application, the code is quite simple:  public class ConsoleTest
{     public static void main(String[] args) {  If I run this
application from Eclipse, then i see "test" in Eclipse's
"Console", but if I export my app as a "Runnable JAR file" and
run it from Windows XP cmd.exe, then nothing is echoed to the
console.  On the safe side, i tried to check System.console(),
it returns null.  What can be wrong?  share|improve this
question Your code works fine for me. When you run it from
cmd.exe, what do you see? –  Hovercraft Full Of Eels May 1 '12
at 17:09 i think System.console() will return null in eclipse
too. –  Boris Strandjev May 1 '12 at 17:09 How are you running
the jar from the command line? –  Attila May 1 '12 at 17:11
@HovercraftFullOfEels, i see exactly the same as without
System.out.println("test");. I.e. nothing. –  Dmitry Frank May 1
'12 at 17:11 Related question:
stackoverflow.com/questions/996517/java-console-api –  Gilbert
Le Blanc May