This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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
Pie
Posts: 42967
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
Posts: 48453
56
  • 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
Posts: 48453
56
  • 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