Solved

Java console window

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iterator/ListIterator approach 17 68
Facing this issue for maven proxy setting 2 44
SequenceInputStream example 3 37
Setup Eclipse for Andriod development 2 18
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

732 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