facebook

console in java returns to null

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #346039 Reply

    amir55
    Participant

    hi dear all

    I get always next statement

    Console console = System.console(); // returns null always why?

    I use MyEclipse for spring and windows xp

    how to enable it? Is it only applicaple to terminals ?

    take care

    Amir

    #346079 Reply

    support-swapna
    Moderator

    Amir,

    It is normal for Eclipse not to associate a Console. There is usually only a Console object if you start your application from a command line or shell or terminal.

    Please take a look at this link for workarounds and give it a try :
    http://stackoverflow.com/questions/104254/java-io-console-support-in-eclipse-ide

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: console in java returns to null

You must be logged in to post in the forum log in