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 Beginning Java and the fly likes Suppressing window when running java.exe 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 » Beginning Java
Bookmark "Suppressing window when running java.exe" Watch "Suppressing window when running java.exe" New topic

Suppressing window when running java.exe

Richard Muller

Joined: May 05, 2002
Posts: 14
I wrote a Windows executable that gets launched by double-clicking the name of java source program. My executable invokes java.exe with suitable parameters to cause the execution of DrJava.exe loaded with the content of the java file whose name was double-clicked.
My executable runs with a hidden window. By java.exe creates a Command window that serves no useful purpose in this app. Is there a simple way to suppress the creation of this Command window. Java.exe help does not indicate any option to cause it to run "silently".
The generated window's caption contains the fully qualified name of jave.exe. I guess I could get my app to search for that window and, when found, send it ShowWindow/Hide message. Any other idea?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Use javaw instead of java.
Michael Morris

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
I agree. Here's the link:
subject: Suppressing window when running java.exe
Similar Threads
How to deploy a GUI Swing application?
MyEclipse and MySql Server need internet while starting?
Running My First Java Application
making a stand alone application..
jar file