• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.io.Console try in Netbeans

 
Juan Manuel Alberto de los Santos
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to try console scripts in NetBeans ?

i want to try this simple script in netbeans ... but, of course, i get "unable to obtain console"



thanks !
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I seem to recall that NetBeans will not provide a console. You can run it from the command line instead.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50171
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a subject which comes up frequently; read the API for Console. This tells you that a console is available if you start an application from the command line. Lots of people get confused about that; as Ulf says, IDEs do not usually have a Console.
 
Juan Manuel Alberto de los Santos
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what a pain !

thanks
 
Campbell Ritchie
Sheriff
Pie
Posts: 50171
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Juan Manuel Alberto de los Santos:
what a pain !

thanks
Yes, a lot less useful than it appears at first sight!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic