Sign in to follow this  
nullsmind

[java] Netbeans 5.0 - Getting a console window to open?

Recommended Posts

I got Netbeans 5.0 set up to most of my preferences. The last one is to get the console window to open without text showing up in the debug window. Is there a way to do this?

Share this post


Link to post
Share on other sites
It's the output window, and for all practical means it is your console. Is there any reason you need a separate console window? An ASCII game or something?

shmoove

Share this post


Link to post
Share on other sites
But when you execute your program outside the IDE, you get the console window alright. Unless you wish to safely channel the ouput to another widget - which is exaclty what netbeans do, it "listens" to the System.out and System.err streams. It's quite easy to capture and read those streams, but I guess you figured it out by now ;)

Son Of Cain

Share this post


Link to post
Share on other sites
Quote:
Original post by nullsmind
I need a regular DOS-looking window for this project. The user doesn't see a Netbeans window showing the output.


As long as the user runs the app with "java" and not "javaw" a DOS Window will show up. The NetBeans output console is just what you use during development.

Share this post


Link to post
Share on other sites
Mind as well make AWT/Swing apps in a debug window :) My point is I don't see what the user sees during development. I have my own c++ headers within my java app doing some various console colors and cursor positions. A debug window isn't doing anything useful as any real world app wouldn't. I found a way to do it in a console window, but I have to type it in each time. This is what the IDE tells me to do...

To run this application from the command line without Ant, try:
java -jar "C:\Documents and Settings\Owner\JavaConsole\dist\JavaConsole.jar"

I guess there's no way to make the IDE automatically do this for me. Visual Studio 05 had the option so I figured NetBeans most likely would. If anyone finds a good solution, please let me know. I'll just type in the long string each time for now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this