Jump to content
  • Advertisement
Sign in to follow this  
nullsmind

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

This topic is 4461 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
I need a regular DOS-looking window for this project. The user doesn't see a Netbeans window showing the output.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!