Solved

Java console window

Posted on 1997-10-20
5
255 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 96
replace a word with other 1 44
varialbe initialization 11 33
java stored proc example 9 29
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

770 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