Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Java console window

Posted on 1997-10-20
5
Medium Priority
?
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
fadl earned 120 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

670 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