Solved

Java console window

Posted on 1997-10-20
5
246 Views
Last Modified: 2012-05-04
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?
0
Comment
Question by:msmolyak
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
fadl earned 30 total points
ID: 1229213
Yes, use
javaw.exe instead of java.exe in your shortcut
HTH
MIchal

0
 
LVL 5

Author Comment

by:msmolyak
ID: 1229214
What exactly is javaw? I could not find any documentation in JDK docs.
0
 
LVL 1

Expert Comment

by:fadl
ID: 1229215
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

0
 
LVL 5

Author Comment

by:msmolyak
ID: 1229216
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.
0
 
LVL 1

Expert Comment

by:fadl
ID: 1229217
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

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 64
countPairs challenge 7 58
Java passing arguments (type error) 2 35
Java Server Faces parameter pass? 6 22
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now