Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

console class is not working

 
raghu ramn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
Tom Reilly
Rancher
Posts: 618
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic