Link to home
Start Free TrialLog in
Avatar of msmolyak
msmolyak

asked on

Java console window

Whenever you start Java application from a batch file or a Windows shortcut using command
   java MainClassName
you get the console window along with any windows that Java might open. For a shortcut it is easy to run this console window in minimized mode so that it is visible only on a toolbar.

My question: is it possible to get rid of the console window entirely or at list remove it from the Windows toolbar?
ASKER CERTIFIED SOLUTION
Avatar of fadl
fadl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of msmolyak
msmolyak

ASKER

What exactly is javaw? I could not find any documentation in JDK docs.
It's just java.exe without DOS prompt attached to
System.out and
System.err

I don't understand what you would like to be seeing in
documentation. Its platform specific. {:)

I use java Main.class 2>/dev/null 1>/dev/null on Unix to
achieve the same thing.
Michal

Michal, thank you for an answer. All I would like to see in documentation is that "javaw is java.exe without DOS prompt attached to System.out and System.err". How can I use it without knowing that it exists.
Just FYI, my friend told me that {:)
I am proud to be Platform independent with my Java
code {:) We develop on Solaris/Linux and W95.

Win* OSs tends to be the most fuzzy and buggy thing under the
Sun {:)
Michal