jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes console class is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "console class is not working" Watch "console class is not working" New topic

console class is not working

raghu ramn

Joined: Feb 20, 2011
Posts: 2

Tom Reilly

Joined: Jun 01, 2010
Posts: 618
Are you running your application from an IDE? From the documention
System.console will only exist If the virtual machine is started from an interactive command line without redirecting the standard input and output streams
This means that System.console will not exist when your application is started by another process, which typical IDEs do.
I agree. Here's the link: http://aspose.com/file-tools
subject: console class is not working
Similar Threads
please correct the code
Runtime.getRuntime().exec("sh export LC_ALL=C") fails!!!!!!!!!!
Program for Console
Why Error Here?