This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java.io.Console try in Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.io.Console try in Netbeans" Watch "java.io.Console try in Netbeans" New topic
Author

java.io.Console try in Netbeans

Juan Manuel Alberto de los Santos
Ranch Hand

Joined: Jun 26, 2008
Posts: 48
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
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
I seem to recall that NetBeans will not provide a console. You can run it from the command line instead.


Ping & DNS - my free Android networking tools app
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38509
    
  23
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

Joined: Jun 26, 2008
Posts: 48
what a pain !

thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38509
    
  23
Originally posted by Juan Manuel Alberto de los Santos:
what a pain !

thanks
Yes, a lot less useful than it appears at first sight!
 
Consider Paul's rocket mass heater.
 
subject: java.io.Console try in Netbeans