This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes running a java-application on Win NT 4.0/Win2000 without DOS-box in background? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "running a java-application on Win NT 4.0/Win2000 without DOS-box in background?" Watch "running a java-application on Win NT 4.0/Win2000 without DOS-box in background?" New topic
Author

running a java-application on Win NT 4.0/Win2000 without DOS-box in background?

Its Just Me
Greenhorn

Joined: Jan 10, 2002
Posts: 21
Hi everyone!
How do I run an application without the dos-box showing in the background on a Windows machine?
When I make a shortcut with the same command on my desktop, a dos-box is also opened. I prefer it to be invisible (or gone at all!). Does anybody know how to do this?
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
In your batch file, use javaw instead of java when invoking your operation.


Rob
SCJP 1.4
Its Just Me
Greenhorn

Joined: Jan 10, 2002
Posts: 21
Thanks,
it works perfectly!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: running a java-application on Win NT 4.0/Win2000 without DOS-box in background?
 
Similar Threads
Change the background of combobox in disabled mode
Hiding DOS console w/GUI app.
Running a SWT program without the dos prompt
dos window
Tomcat 5 not starting....Please help!!!